File tree 1 file changed +14
-2
lines changed
1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 24
24
' sl-require-admin-action' ) }}
25
25
steps :
26
26
- name : Add comment to PR
27
- uses : actions/github-script@v6
27
+ uses : actions/github-script@v7
28
28
with :
29
29
script : |
30
30
const prNumber = context.payload.pull_request.number;
59
59
' sl-require-admin-action'
60
60
steps :
61
61
- name : Add comment to PR
62
- uses : actions/github-script@v6
62
+ uses : actions/github-script@v7
63
63
with :
64
64
script : |
65
65
const prNumber = context.payload.pull_request.number;
79
79
});
80
80
}
81
81
82
+ - name : Re-add sl-require-admin-action label
83
+ uses : actions/github-script@v7
84
+ with :
85
+ script : |
86
+ const prNumber = context.payload.pull_request.number;
87
+ await github.rest.issues.addLabels({
88
+ owner: context.repo.owner,
89
+ repo: context.repo.repo,
90
+ issue_number: prNumber,
91
+ labels: ['sl-require-admin-action'],
92
+ });
93
+
82
94
- name : Prevent sl-require-admin-action label removal
83
95
run : |
84
96
echo "The sl-require-admin-action label cannot be removed. Failing the job."
You can’t perform that action at this time.
0 commit comments