File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 - uses : actions/checkout@v4
1212
1313 - name : All Green
14- uses : getdevopspro/github-actions/all-green@v6.2.4
14+ uses : getdevopspro/github-actions/all-green@v6.3.2
Original file line number Diff line number Diff line change 1010jobs :
1111 build :
1212 name : Build
13- uses : getdevopspro/github-actions/.github/workflows/build.yml@v6.2.4
13+ uses : getdevopspro/github-actions/.github/workflows/build.yml@v6.3.2
1414 with :
1515 version-package : package.json
1616 version-package-lock : package-lock.json
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: PR - Label
22
33on :
44 pull_request :
5- types : [labeled]
5+ types : [labeled, unlabeled ]
66
77concurrency :
88 group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.event.label.name }}
2222 label-test-robot-needed : test-robot-needed
2323 secrets :
2424 token : ${{ secrets.BOT_REPO_TOKEN }}
25+
26+ test-robot-check :
27+ needs : test-robot-label
28+ name : Job
29+ uses : ./.github/workflows/test-robot-check.yml
30+ with :
31+ label-test-robot-done : test-robot-done
32+ label-test-robot-needed : test-robot-needed
33+
34+ all-green :
35+ needs : test-robot-check
36+ if : ${{ !cancelled() }}
37+ name : Job
38+ uses : ./.github/workflows/all-green.yml
Original file line number Diff line number Diff line change @@ -15,21 +15,23 @@ permissions:
1515 checks : read
1616
1717jobs :
18- test-robot-unlabel :
19- if : github.event.action == 'synchronize'
18+ test-robot-remove :
2019 name : Job
21- uses : ./.github/workflows/test-robot-unlabel .yml
20+ uses : ./.github/workflows/test-robot-remove .yml
2221 with :
2322 label-test-robot-done : test-robot-done
2423 label-test-robot-needed : test-robot-needed
2524 secrets :
2625 token : ${{ secrets.BOT_REPO_TOKEN }}
2726
2827 build :
29- needs : test-robot-unlabel
30- if : ${{ !failure() && !cancelled() && needs.test-robot-unlabel .result != 'failure' }}
28+ needs : test-robot-remove
29+ if : ${{ !failure() && !cancelled() && needs.test-robot-remove .result != 'failure' }}
3130 name : Job
32- uses : ./.github/workflows/build.yml
31+ # uses: ./.github/workflows/build.yml
32+ runs-on : ubuntu-latest
33+ steps :
34+ - run : echo "Build step - replace with actual build commands"
3335
3436 test-robot-check :
3537 needs : build
Original file line number Diff line number Diff line change 2424 promote :
2525 name : Job
2626 needs : build
27- uses : getdevopspro/github-actions/.github/workflows/promote.yml@v6.2.4
27+ uses : getdevopspro/github-actions/.github/workflows/promote.yml@v6.3.2
2828 secrets :
2929 # To bypass ruleset enforcing checks
3030 checkout-token : ${{ secrets.BOT_REPO_TOKEN }}
Original file line number Diff line number Diff line change 3131 - uses : actions/checkout@v4
3232
3333 - name : Robot Test Check
34- uses : getdevopspro/github-actions/test/check@v6.2.4
34+ uses : getdevopspro/github-actions/test/label/ check@v6.3.2
3535 with :
3636 label-done : ${{ inputs.label-test-robot-done }}
3737 label-needed : ${{ inputs.label-test-robot-needed }}
Original file line number Diff line number Diff line change @@ -25,23 +25,27 @@ permissions:
2525
2626jobs :
2727 test-robot-label :
28- if : github.event.action == 'labeled' &&
29- github.event.label.name == inputs['label-test-robot-done']
28+ if : >
29+ github.event.label.name == inputs['label-test-robot-done'] ||
30+ github.event.label.name == inputs['label-test-robot-needed']
3031 name : Robot Test Label
3132 runs-on : ubuntu-latest
3233 steps :
3334 - uses : actions/checkout@v4
3435
35- - name : Robot Test Label
36- uses : getdevopspro/github-actions/test/label@v6.2.4
36+ - name : Robot Test Done Label
37+ if : >
38+ github.event.action == 'labeled' &&
39+ github.event.label.name == inputs['label-test-robot-done']
40+ uses : getdevopspro/github-actions/test/label/added@v6.3.2
3741 with :
3842 label-done : ${{ inputs.label-test-robot-done }}
3943 label-needed : ${{ inputs.label-test-robot-needed }}
4044 test-name : Robot
4145 token : ${{ secrets.token }}
4246
43- - name : Rerun pull-request workflow
44- uses : getdevopspro/github-actions/pr/checks-rerun@v6.2.4
45- with :
46- workflow-id : pull-request.yml
47- token : ${{ secrets.token }}
47+ # - name: Rerun pull-request workflow
48+ # uses: getdevopspro/github-actions/pr/checks-rerun@v6.3.2
49+ # with:
50+ # workflow-id: pull-request.yml
51+ # token: ${{ secrets.token }}
Original file line number Diff line number Diff line change 1- name : Robot Test Unlabel
1+ name : Remove Robot Test
22
33on :
44 workflow_call :
@@ -23,15 +23,15 @@ permissions:
2323 pull-requests : write
2424
2525jobs :
26- test-robot-unlabel :
27- if : contains(github.event.pull_request.labels.*.name, inputs.label-test-robot-done)
28- name : Robot Test Unlabel
29- runs-on : ubuntu-latest|
26+ test-robot-remove :
27+ if : github.event.action == 'synchronize' && contains(github.event.pull_request.labels.*.name, inputs.label-test-robot-done)
28+ name : Remove Robot Test
29+ runs-on : ubuntu-latest
3030 steps :
3131 - uses : actions/checkout@v4
3232
33- - name : Robot Test Unlabel
34- uses : getdevopspro/github-actions/test/unlabel @v6.2.4
33+ - name : Remove Robot Test Label
34+ uses : getdevopspro/github-actions/test/label/remove @v6.3.2
3535 with :
3636 label-done : ${{ inputs.label-test-robot-done }}
3737 label-needed : ${{ inputs.label-test-robot-needed }}
You can’t perform that action at this time.
0 commit comments