workflows: add autopublish workflow (#53194)

Only do a dry run, for now.
master
Dawid Dziurla 2020-04-25 08:28:24 +02:00 committed by GitHub
parent a0e6ed090c
commit f888779204
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 24 additions and 0 deletions

24
.github/workflows/scheduled.yml vendored Normal file
View File

@ -0,0 +1,24 @@
name: Scheduled tasks
on:
schedule:
# Once every hour
- cron: '*/60 * * * *'
jobs:
autopublish:
runs-on: ubuntu-latest
container:
image: homebrew/brew
env:
HOMEBREW_NO_ANALYTICS: 1
HOMEBREW_NO_AUTO_UPDATE: 1
steps:
- name: Update Homebrew
run: |
brew update-reset $(brew --repo)
- name: Run automerge
env:
HOMEBREW_GITHUB_API_TOKEN: ${{secrets.HOMEBREW_GITHUB_API_TOKEN}}
run: |
brew pr-automerge --verbose