Check and update brew definitions #224
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: 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' |