Update #4
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@v3 | |
- name: Update formula | |
continue-on-error: true # This step fails when formula is up-to-date | |
shell: bash | |
env: | |
GH_TOKEN: ${{ github.token }} | |
run: | | |
git config user.name "Dhruv Bhanushali" | |
git config user.email "hi@dhruvkb.dev" | |
git checkout -b update_formula | |
./scripts/update_formula.sh | |
git add . | |
git commit --all --message "Update formula" | |
git push origin update_formula | |
gh pr create --title "Update formula" --body "Update formula" |