Skip to content

Commit

Permalink
Add workflow to update the formula daily
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvkb committed Dec 29, 2023
1 parent 932e7fb commit d8f986c
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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 checkout -b update_formula
./scripts/update_formula.sh
git add .
git commit -m "Update formula"
git push origin update_formula
gh pr create --title "Update formula" --body "Update formula"

0 comments on commit d8f986c

Please sign in to comment.