-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1.26 KB
/
check-merged-pull-request.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
37
38
39
40
41
name: check-merged-pull-request
on:
pull_request:
types: [closed]
jobs:
revert:
runs-on: self-hosted
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true
steps:
- id: checkout
name: Checkout
uses: actions/checkout@v2
- id: action-size
name: Size
uses: actions-ecosystem/action-size@v2
- id: action-remove-labels
name: Remove labels
uses: actions-ecosystem/action-remove-labels@v1
with:
github_token: ${{ github.token }}
labels: ${{ steps.action-size.outputs.stale_labels }}
- id: find-pr
name: Find PR
uses: jwalton/gh-find-current-pr@v1
with:
state: closed
- id: print-pr-number
name: PR number
if: success() && steps.find-pr.outputs.pr
run: echo "Your PR number is ${{ steps.find-pr.outputs.pr }}"
- id: check
name: Check merged pull request
if: success() && steps.find-pr.outputs.pr
run: docker run --network=host -v ${PR_BOT_CONFIG_PATH}:/config devspring2022/pr-automation:testing python3.8 check_pull_request.py ${{ github.token }} ${{ steps.find-pr.outputs.pr }} ${{ github.event.repository.full_name }} ${{ github.event.sender.login }}