bump_fixcompliance #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bump fixcompliance | |
on: | |
workflow_dispatch: | |
repository_dispatch: | |
types: [bump_fixcompliance] | |
jobs: | |
bump-version: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.SOME_CI_PAT }} | |
- name: Configure Git | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Some CI" | |
- name: Run bumpfixcompliance script | |
run: bash ./tools/bumpfixcompliance.sh | |
- name: Commit and push if changes | |
if: success() | |
env: | |
GITHUB_TOKEN: ${{ secrets.SOME_CI_PAT }} | |
run: | | |
git add -A | |
if git commit -m "[fixinventory][chore] Bump fixcompliance to latest"; then | |
git push | |
else | |
echo "No changes to commit" | |
fi |