Update release action to update main
instead of PRs
#8
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 | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
schedule: | |
# "At 00:00." / https://crontab.guru/#0_0_*_*_* | |
- cron: '0 0 * * *' | |
jobs: | |
update: | |
name: Update formula | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
ref: main | |
- name: Update formula | |
continue-on-error: true # This step fails when formula is up-to-date | |
run: | | |
./scripts/update_formula.sh | |
git config user.name "Dhruv Bhanushali" | |
git config user.email "[email protected]" | |
git commit --all --message "Update formula" | |
git push origin main |