Publish and commit bottles on schedule #9166
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: Publish and commit bottles on schedule | |
on: | |
workflow_dispatch: | |
schedule: | |
# Once every hour | |
- cron: "*/60 * * * *" | |
concurrency: | |
group: autopublish | |
cancel-in-progress: true | |
env: | |
HOMEBREW_FORCE_HOMEBREW_ON_LINUX: 1 | |
permissions: | |
contents: read | |
jobs: | |
autopublish: | |
if: github.repository == 'Homebrew/homebrew-core' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Homebrew | |
id: set-up-homebrew | |
uses: Homebrew/actions/setup-homebrew@master | |
- name: Run automerge | |
env: | |
HOMEBREW_GITHUB_API_TOKEN: ${{secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN}} | |
run: brew pr-automerge --verbose --publish |