Code Monkey home page Code Monkey logo

actions-action-configuration-autoupdate's Introduction

actions-action-configuration-autoupdate

This actions updates the local GitHub Actions configuration yml-files. You need an extra Github repository as source for your GitHub Actions configuration. To auto-commit the changes within the action run you can use the stefanzweifel/git-auto-commit-action action.

Requirements

  • GitHub repository that contains your personal GitHub Actions configuration files

Inputs

token

Required The repository token is used to request the remote GitHub Actions configuration-files from the GitHub API

actions-configuration-files

Required Comma separated list of GitHub Action configuration filenames with path to the location in your remote repository

source-repository

Required GitHub repository where your GitHub Action configuration is located

source-ref

Branch/Commit/Tag from source repository where to get updated GitHub Actions configuration files (default: master)

Outputs

updated

Is set to true if one configuration file is changed. Usage:

- uses: avides/[email protected]
  id: actions_action_configuration_autoupdate
  with:
    token: ${{ secrets.PAT }}
    actions-configuration-files: path/to/files/workflow1.yml,path/to/files/workflow2.yml
    source-repository: your/workflow-configuration-repository

- name: action-configuration-updated
  if: ${{ steps.actions_action_configuration_autoupdate.outputs.updated }} == 'true'
  run: exit 1

Example usage

- name: action-configuration-autoupdate
  uses: avides/[email protected]
  with:
    token: ${{ secrets.PAT }}
    actions-configuration-files: path/to/files/workflow1.yml,path/to/files/workflow2.yml
    source-repository: your/workflow-configuration-repository

Example usage with auto-commit

- name: checkout
  uses: actions/checkout@v3
  with:
    ref: ${{ github.head_ref }}
    token: ${{ secrets.PAT }}

- name: action-configuration-autoupdate
  uses: avides/[email protected]
  with:
    token: ${{ secrets.PAT }}
    actions-configuration-files: path/to/files/workflow1.yml,path/to/files/workflow2.yml
    source-repository: your/workflow-configuration-repository

- uses: stefanzweifel/git-auto-commit-action@v4
  with:
    file_pattern: .github/workflows/*.yml
    commit_message: Update GitHub Action configuration

actions-action-configuration-autoupdate's People

Contributors

fegbers avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

bigbizbot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.