Autobump Formulas and Casks #207
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: Autobump Formulas and Casks | |
on: | |
schedule: | |
- cron: '0 0 * * *' # every 24 hours | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
autobump: | |
runs-on: macos-latest | |
steps: | |
- name: Update Homebrew formula | |
uses: dawidd6/action-homebrew-bump-formula@baf2b60c51fc1f8453c884b0c61052668a71bd1d | |
with: | |
# Required, custom personal GitHub access token with only the 'public_repo' scope enabled | |
token: ${{ secrets.HOMEBREW_TAP_GITHUB_API_TOKEN }} | |
# Optional, will commit with this user name | |
user_name: risc | |
# Optional, will commit with this user email | |
user_email: [email protected] | |
# Optional, use the origin repository instead of forking | |
no_fork: true | |
# Bump all outdated formulae in this tap | |
tap: Neved4/homebrew-tap | |
# Optional, if don't want to check for already open PRs | |
force: true # doesn't actually seem to work | |
# Need to set this input if want to use `brew livecheck` | |
livecheck: true | |
- name: Update Homebrew cask | |
uses: eugenesvk/action-homebrew-bump-cask@cc260684c6e41de1af9522a0f4dcb4f321a17f33 | |
with: | |
# Required, custom GitHub access token with only the 'public_repo' scope enabled | |
token: ${{ secrets.HOMEBREW_TAP_GITHUB_API_TOKEN }} | |
# Bump all outdated casks in this tap | |
tap: Neved4/homebrew-tap | |
# Need to set this input if want to use `brew livecheck` | |
livecheck: true |