-
Notifications
You must be signed in to change notification settings - Fork 20
36 lines (33 loc) · 963 Bytes
/
auto_merge.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Automatically Approve / Merge PR
on:
pull_request:
jobs:
Auto_Approve:
name: Auto Approve
runs-on: ubuntu-latest
if: github.actor == 'jim60105' && github.repository == 'jim60105/docker-whisperX'
steps:
- name: Auto approve
uses: hmarr/auto-approve-action@v3
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
Auto_Merge_PR:
name: Auto Merge PR
runs-on: ubuntu-latest
needs: "Auto_Approve"
steps:
- name: Git Auto Merge
uses: plm9606/[email protected]
with:
# Use PAT to trigger another workflow
github-token: ${{ secrets.CR_PAT }}
merge-method: squash
reviewers-number: 0
label-name: "automerge"
- name: Remove label
if: ${{ success() }}
uses: buildsville/add-remove-label@v1
with:
token: ${{secrets.GITHUB_TOKEN}}
label: "automerge"
type: remove