Skip to content

Commit e67d0c7

Browse files
committed
wip: Update labels on instance creation
1 parent eb9864c commit e67d0c7

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/create-instance.yml

+24
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@ jobs:
1313
runs-on: self-hosted
1414
if: github.event.label.name == 'instance:approved'
1515
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+
1628
- name: Issue Forms Body Parser
1729
id: parse
1830
uses: zentered/[email protected]
@@ -102,3 +114,15 @@ jobs:
102114
"[MorphoCloudPortal] Instance ${{ github.event.issue.number }}
103115
created"
104116
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+
})

0 commit comments

Comments
 (0)