Fix GitHub Action? #4
Workflow file for this run
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: Update versions.md | |
on: | |
push: | |
branches: | |
- component_versions | |
jobs: | |
update_versions: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Update versions.md | |
run: sudo bin/version_scan | |
- name: Commit and push if it changed | |
run: | | |
git diff | |
git config --global user.email "[email protected]" | |
git config --global user.name "GitHub Action" | |
git commit -am "Update versions.md" || exit 0 | |
git push |