Skip to content

Publish and commit bottles on schedule #34472

Publish and commit bottles on schedule

Publish and commit bottles on schedule #34472

Workflow file for this run

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