Skip to content

Commit

Permalink
wip: Update labels on instance creation
Browse files Browse the repository at this point in the history
  • Loading branch information
jcfr committed May 2, 2024
1 parent eb9864c commit e67d0c7
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/create-instance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@ jobs:
runs-on: self-hosted
if: github.event.label.name == 'instance:approved'
steps:
- name: Remove "instance:approved" label
if: ${{ always() }}
uses: actions/github-script@v7
with:
script: |
github.rest.issues.removeLabel({
issue_number: context.payload.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
name: ["instance:approved"]
})
- name: Issue Forms Body Parser
id: parse
uses: zentered/[email protected]
Expand Down Expand Up @@ -102,3 +114,15 @@ jobs:
"[MorphoCloudPortal] Instance ${{ github.event.issue.number }}
created"
body: Instance ${{ github.event.issue.number }} created

- name: Add "instance:created" label
if: ${{ success() }}
uses: actions/github-script@v7
with:
script: |
github.rest.issues.addLabels({
issue_number: context.payload.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
name: ["instance:created"]
})

0 comments on commit e67d0c7

Please sign in to comment.