Update available versions #750
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 available versions | |
on: | |
schedule: | |
- cron: "0 3 * * *" | |
workflow_dispatch: | |
jobs: | |
update_versions: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Get versions | |
run: ./get-versions | |
- name: Setup git user | |
run: | | |
git config --global user.email ${{secrets.BUILD_USER_EMAIL}} | |
git config --global user.name ${{secrets.BUILD_USER}} | |
- name: Commit and push changes | |
run: | | |
git add . | |
git commit -m "Update available versions | GitHub Actions $GITHUB_WORKFLOW $GITHUB_RUN_NUMBER" || echo "No changes to commit." | |
git push |