Publish and commit bottles on schedule #32511
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: | |
- cron: '*/30 0-4 * * *' | |
- cron: '*/60 5-23 * * *' | |
env: | |
HOMEBREW_FORCE_HOMEBREW_ON_LINUX: 1 | |
jobs: | |
autopublish: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Set up Homebrew | |
id: set-up-homebrew | |
uses: Homebrew/actions/setup-homebrew@master | |
with: | |
test-bot: false | |
- name: Run automerge | |
env: | |
HOMEBREW_GITHUB_API_TOKEN: ${{secrets.HOMEBREW_GITHUB_API_TOKEN}} | |
run: | | |
sudo sed -i '/pending/d' "$(brew --repository)"/Library/Homebrew/dev-cmd/pr-automerge.rb | |
brew pr-automerge --tap=${{ github.repository_owner }}/php --verbose --publish --without-approval --with-label=build-complete |