-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
26 lines (24 loc) · 751 Bytes
/
on-pr-labeled.yml
File metadata and controls
26 lines (24 loc) · 751 Bytes
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
name: On PR labeled
on:
pull_request:
types:
- labeled
jobs:
automerge:
name: Auto Merge
if: >
github.event.label.name == 'automerge' &&
github.repository == 'JabRef/jabref' &&
github.event.pull_request.head.repo.full_name == 'JabRef/jabref'
runs-on: ubuntu-latest
steps:
- name: Approve PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GH_TOKEN_JABREF_MACHINE_PR_APPROVE}}
- name: Merge PR
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GH_TOKEN_UPDATE_GRADLE_WRAPPER}}