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

39 lines
860 B
YAML
Raw Normal View History

2020-05-12 01:04:31 +08:00
name: automerge
on:
pull_request:
types:
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
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 }}
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
})