Skip to content

Update release action to update main instead of PRs #5

Update release action to update main instead of PRs

Update release action to update main instead of PRs #5

Workflow file for this run

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
run: |
./scripts/update_formula.sh
git config user.name "Dhruv Bhanushali"
git config user.email "hi@dhruvkb.dev"
git add .
git commit --all --message "Update formula"
git remote set-url origin https://x-access-token:${{ secrets.ACCESS_TOKEN }}@github.com/pls-rs/homebrew-pls.git
git push origin main