update.sh #1591
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.sh | |
on: | |
push: | |
branches: | |
- stable | |
schedule: | |
- cron: '15 0 * * *' | |
jobs: | |
run_update_sh: | |
name: Run update.sh script | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run update.sh script | |
run: ./update.sh | |
- name: Commit files | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Workflow" | |
git add ./* | |
git commit -m "Runs update.sh" || echo "Nothing to update" | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
force: true | |
branch: 'stable' |