File tree 1 file changed +24
-0
lines changed
1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 13
13
runs-on : self-hosted
14
14
if : github.event.label.name == 'instance:approved'
15
15
steps :
16
+ - name : Remove "instance:approved" label
17
+ if : ${{ always() }}
18
+ uses : actions/github-script@v7
19
+ with :
20
+ script : |
21
+ github.rest.issues.removeLabel({
22
+ issue_number: context.payload.issue.number,
23
+ owner: context.repo.owner,
24
+ repo: context.repo.repo,
25
+ name: ["instance:approved"]
26
+ })
27
+
16
28
- name : Issue Forms Body Parser
17
29
id : parse
18
30
@@ -102,3 +114,15 @@ jobs:
102
114
" [MorphoCloudPortal] Instance ${{ github.event.issue.number }}
103
115
created"
104
116
body : Instance ${{ github.event.issue.number }} created
117
+
118
+ - name : Add "instance:created" label
119
+ if : ${{ success() }}
120
+ uses : actions/github-script@v7
121
+ with :
122
+ script : |
123
+ github.rest.issues.addLabels({
124
+ issue_number: context.payload.issue.number,
125
+ owner: context.repo.owner,
126
+ repo: context.repo.repo,
127
+ name: ["instance:created"]
128
+ })
You can’t perform that action at this time.
0 commit comments