File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,21 +14,12 @@ permissions:
1414 pull-requests : write
1515
1616jobs :
17- test-unlabel :
17+ test-robot- unlabel :
1818 if : github.event.action == 'synchronize'
19- name : Test Unlabel
20- runs-on : ubuntu-latest
21- steps :
22- - uses : actions/checkout@v4
23-
24- - name : Remove Test Label
25- uses : ./.github/actions/test-unlabel
26- with :
27- label-test-robot-done : test-robot-done
28- label-test-robot-needed : test-robot-needed
19+ name : Job
20+ uses : ./.github/workflows/test-robot-unlabel.yaml
2921
3022 build :
31- needs : test-unlabel
32- if : always() && github.event.action != 'labeled'
23+ needs : test-robot-unlabel
3324 name : Job
3425 uses : ./.github/workflows/build.yaml
Original file line number Diff line number Diff line change 1- name : Test Label
1+ name : Test Robot Label
22
33on :
44 workflow_call :
88 required : true
99 type : string
1010
11+ permissions :
12+ contents : read
13+ pull-requests : write
14+
1115jobs :
12- test-label :
16+ test-robot- label :
1317 if : github.event.label.name == 'test-robot-done'
14- name : Test Label
18+ name : Test Robot Label
1519 runs-on : ubuntu-latest
1620 steps :
1721 - uses : actions/checkout@v4
1822
19- - name : Test Label Added
23+ - name : Test Robot Label
2024 uses : ./.github/actions/test-label
2125 with :
2226 label-test-robot-done : ${{ inputs.label-test-robot-done }}
Original file line number Diff line number Diff line change 1+ name : Test Robot Unlabel
2+
3+ on :
4+ workflow_call :
5+ inputs :
6+ label-test-robot-done :
7+ description : ' Label name indicating the PR has been test-robot-done'
8+ required : true
9+ type : string
10+ label-test-robot-needed :
11+ description : ' Label name indicating the PR needs robot testing'
12+ required : true
13+ type : string
14+
15+ permissions :
16+ contents : read
17+ pull-requests : write
18+
19+ jobs :
20+ test-robot-unlabel :
21+ if : github.event.label.name == 'test-robot-done'
22+ name : Test Robot Unlabel
23+ runs-on : ubuntu-latest
24+ steps :
25+ - uses : actions/checkout@v4
26+
27+ - name : Remove Robot Unlabel
28+ uses : ./.github/actions/test-unlabel
29+ with :
30+ label-test-robot-done : ${{ inputs.label-test-robot-done }}
31+ label-test-robot-needed : ${{ inputs.label-test-robot-needed }}
You can’t perform that action at this time.
0 commit comments