File tree Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change 11
11
pull_request :
12
12
types : [opened, synchronize, reopened]
13
13
14
- permissions :
15
- checks : read
16
- pull-requests : write
17
-
18
14
jobs :
19
15
reset_ci_passed_label :
20
16
if : github.event_name == 'pull_request' && (github.event.action == 'synchronize' || github.event.action == 'reopened')
21
17
runs-on : ubuntu-latest
22
- env :
23
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
18
+ permissions :
19
+ checks : read
20
+ pull-requests : write
24
21
steps :
25
22
- name : Reset ci-passed label status on PR Syncronization
26
23
run : |
27
24
echo "Resetting 'ci-passed' label as new changes have been pushed."
28
25
gh pr edit ${{ github.event.pull_request.number }} --remove-label "ci-passed" --repo $GITHUB_REPOSITORY || echo "Label not present"
29
-
26
+ env :
27
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
30
28
check_ci_status :
31
29
runs-on : ubuntu-latest
32
- env :
33
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
30
+ permissions :
31
+ checks : read
32
+ pull-requests : write
34
33
steps :
35
34
- name : Check if all CI checks passed
36
35
uses : wechuli/allcheckspassed@0b68b3b7d92e595bcbdea0c860d05605720cf479
37
- with :
38
- GITHUB_TOKEN : ${{ env.GITHUB_TOKEN }}
36
+ with :
39
37
delay : ' 5'
40
38
retries : ' 7'
41
- polling_interval : ' 5'
39
+ polling_interval : ' 5'
40
+ env :
41
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
42
42
- name : Add 'ci-passed' label
43
43
if : success()
44
44
run : |
45
- gh pr edit ${{ github.event.pull_request.number }} --add-label "ci-passed" --repo $GITHUB_REPOSITORY
45
+ gh pr edit ${{ github.event.pull_request.number }} --add-label "ci-passed" --repo $GITHUB_REPOSITORY
46
+ env :
47
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments