Skip to content

Commit c706d6f

Browse files
authored
undeploy-1-setup.yml: removed job that prepends model name (#43)
1 parent 43e7970 commit c706d6f

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

.github/workflows/undeploy-1-setup.yml

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,8 @@ on:
55
version-pattern:
66
type: string
77
required: true
8-
description: A wildcard-supported string for version(s) of the model being removed
8+
description: A wildcard-supported string of spack environments to remove
99
jobs:
10-
get-spack-env:
11-
name: Get Spack Environment
12-
runs-on: ubuntu-latest
13-
outputs:
14-
model: ${{ steps.get-model.outputs.model }}
15-
env-name: ${{ steps.get-env-name.outputs.env-name }}
16-
steps:
17-
- name: Get Model
18-
id: get-model
19-
# for the cases where the repo name is in uppercase but the package name is lowercase (eg. access-nri/MOM5)
20-
run: echo "model=$(echo ${{ github.event.repository.name }} | tr [:upper:] [:lower:])" >> $GITHUB_OUTPUT
21-
- name: Set Spack Env Name String
22-
id: get-env-name
23-
# replace occurences of '.' with '_' in environment name as spack doesn't support '.'. Ex: 'access-om2-v1.0.0' -> 'access-om2-v1_0_0'.
24-
run: echo "env-name=$(echo '${{ steps.get-model.outputs.model }}-${{ inputs.version-pattern }}' | tr '.' '_')" >> $GITHUB_OUTPUT
25-
2610
get-prerelease-deployment-env:
2711
name: Get Prerelease Deployment Environment
2812
runs-on: ubuntu-latest
@@ -42,7 +26,6 @@ jobs:
4226
undeployment:
4327
name: Remove Deployment
4428
needs:
45-
- get-spack-env
4629
- get-prerelease-deployment-env
4730
strategy:
4831
fail-fast: false
@@ -51,5 +34,5 @@ jobs:
5134
uses: access-nri/build-cd/.github/workflows/undeploy-2-start.yml@main
5235
with:
5336
deployment-environment: ${{ matrix.deployment-environment }}
54-
env-name: ${{ needs.get-spack-env.outputs.env-name }}
37+
env-name: ${{ inputs.version-pattern }}
5538
secrets: inherit

0 commit comments

Comments
 (0)