gpg/.github/workflows/automerge.yml

42 lines
920 B
YAML
Raw Normal View History

2020-05-11 13:15:12 -04:00
name: automerge
on:
pull_request:
types:
2020-05-14 01:16:06 -04:00
- labeled
2020-05-13 22:07:13 -04:00
- reopened
2020-05-11 13:15:12 -04:00
- unlocked
2020-05-13 22:07:13 -04:00
- unlabeled
2020-05-14 01:16:06 -04:00
- synchronize
2020-05-13 22:07:13 -04:00
pull_request_review:
types:
- submitted
2020-05-11 13:15:12 -04:00
check_suite:
types:
- completed
status: {}
jobs:
dependabot:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
steps:
-
2020-05-13 22:07:13 -04:00
name: Automerge
uses: pascalgn/automerge-action@v0.8.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2020-05-14 01:16:06 -04:00
MERGE_LABELS:
2020-05-13 22:07:13 -04:00
MERGE_METHOD: squash
MERGE_COMMIT_MESSAGE: automatic
2020-05-11 13:15:12 -04:00
-
2020-05-13 22:07:13 -04:00
name: Dispatch event
2020-05-11 13:15:12 -04:00
uses: actions/github-script@0.9.0
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
2020-05-13 22:07:13 -04:00
github.repos.createDispatchEvent({
...context.repo,
event_type: 'ncc'
2020-05-11 13:15:12 -04:00
})