-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 1.02 KB
/
pull-request.yml
File metadata and controls
46 lines (38 loc) · 1.02 KB
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
42
43
44
45
46
name: PR
on:
pull_request:
types: [opened, synchronize, reopened, labeled]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
packages: write
pull-requests: write
jobs:
test-label:
if: github.event.label.name == 'test-robot-done'
name: Test Label
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Test Label Added
uses: ./.github/actions/test-label
with:
label-test-robot-done: test-robot-done
test-unlabel:
if: github.event.action == 'synchronize'
name: Test Unlabel
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Remove Test Label
uses: ./.github/actions/test-unlabel
with:
label-test-robot-done: test-robot-done
label-test-robot-needed: test-robot-needed
build:
needs: test-unlabel
if: always() && github.event.action != 'labeled'
name: Job
uses: ./.github/workflows/build.yaml