Skip to content

Check and update brew definitions #154

Check and update brew definitions

Check and update brew definitions #154

---
name: Check and update brew definitions
"on":
schedule:
- cron: '0 5 * * *'
push:
workflow_dispatch:
jobs:
check_updates:
permissions:
contents: write
pull-requests: write
name: "Homebrew spec update checker"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run the check script
run: bash homebrew_check_latest_release.sh
- name: Update homebrew spec file
uses: technote-space/create-pr-action@v2
with:
EXECUTE_COMMANDS: bash homebrew_check_latest_release.sh
ONLY_DEFAULT_BRANCH: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMMIT_MESSAGE: 'Update version automagically for ref: ${PR_HEAD_REF}'
COMMIT_NAME: 'Version bump'
COMMIT_EMAIL: '[email protected]'
PR_BRANCH_NAME: 'brew-update-${PR_HEAD_REF}'
PR_TITLE: 'Update to version'