Publish and commit bottles on schedule #1448
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-22.04 | |
container: | |
image: ghcr.io/homebrew/ubuntu22.04:master | |
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 |