2020-12-03 16:49:20 +08:00
|
|
|
name: Automatic Merge by label
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types:
|
|
|
|
- labeled
|
|
|
|
jobs:
|
|
|
|
auto-merge:
|
|
|
|
runs-on: ubuntu-latest
|
2020-12-03 18:58:38 +08:00
|
|
|
if: github.event.label.name == 'BranchAutoMerge' && github.event.pull_request.head.repo.full_name == 'ant-design/ant-design' && (github.event.pull_request.head.ref == 'master' || github.event.pull_request.head.ref == 'feature')
|
2020-12-03 16:49:20 +08:00
|
|
|
steps:
|
2020-12-03 17:29:48 +08:00
|
|
|
- name: Auto Approve
|
2020-12-03 18:58:38 +08:00
|
|
|
uses: zombieJ/automerge-action@0.0.2
|
2020-12-03 17:29:48 +08:00
|
|
|
with:
|
|
|
|
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
|
|
|
- name: Auto Merge
|
2020-12-03 16:49:20 +08:00
|
|
|
uses: "pascalgn/automerge-action@v0.12.0"
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
|
|
|
MERGE_LABELS: "BranchAutoMerge"
|
|
|
|
MERGE_REMOVE_LABELS: "BranchAutoMerge"
|