File tree 1 file changed +14
-14
lines changed
1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change 23
23
${{ contains(github.event.pull_request.labels.*.name,
24
24
' sl-require-admin-action' ) }}
25
25
steps :
26
- - name : Check for sl-require-admin-action label
27
- run :
28
- echo "The sl-require-admin-action label is present. Failing
29
- the job."
30
- env :
31
- GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
32
26
- name : Add comment to PR
33
27
uses : actions/github-script@v6
34
28
with :
49
43
body: comment,
50
44
});
51
45
}
52
- process.exit(1);
46
+
47
+ - name : Check for sl-require-admin-action label
48
+ run : |
49
+ echo "The sl-require-admin-action label is present. Failing the job."
50
+ process.exit(1);
51
+ env :
52
+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
53
53
54
54
prevent-label-removal :
55
55
name : Prevent sl-require-admin-action label removal
58
58
github.event.action == 'unlabeled' && github.event.label.name ==
59
59
' sl-require-admin-action'
60
60
steps :
61
- - name : Prevent sl-require-admin-action label removal
62
- run :
63
- echo "The sl-require-admin-action label cannot be removed.
64
- Failing the job."
65
- env :
66
- GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
67
61
- name : Add comment to PR
68
62
uses : actions/github-script@v6
69
63
with :
84
78
body: comment,
85
79
});
86
80
}
87
- process.exit(1);
81
+
82
+ - name : Prevent sl-require-admin-action label removal
83
+ run : |
84
+ echo "The sl-require-admin-action label cannot be removed. Failing the job."
85
+ process.exit(1);
86
+ env :
87
+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
You can’t perform that action at this time.
0 commit comments