ghaction-github-pages/.github/workflows/automerge.yml

42 lines
920 B
YAML
Raw Normal View History

2020-05-12 01:04:31 +08:00
name: automerge
on:
pull_request:
types:
2020-05-14 13:15:56 +08:00
- labeled
2020-05-14 10:06:45 +08:00
- reopened
2020-05-12 01:04:31 +08:00
- unlocked
2020-05-14 10:06:45 +08:00
- unlabeled
2020-05-14 13:15:56 +08:00
- synchronize
2020-05-14 10:06:45 +08:00
pull_request_review:
types:
- submitted
2020-05-12 01:04:31 +08: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-14 10:06:45 +08:00
name: Automerge
uses: pascalgn/automerge-action@v0.8.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2020-05-14 13:15:56 +08:00
MERGE_LABELS:
2020-05-14 10:06:45 +08:00
MERGE_METHOD: squash
MERGE_COMMIT_MESSAGE: automatic
2020-05-12 01:04:31 +08:00
-
2020-05-14 10:06:45 +08:00
name: Dispatch event
2020-05-12 01:04:31 +08:00
uses: actions/github-script@0.9.0
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
2020-05-14 10:06:45 +08:00
github.repos.createDispatchEvent({
...context.repo,
event_type: 'ncc'
2020-05-12 01:04:31 +08:00
})