Skip to content

Commit 9bf3773

Browse files
authored
Undeploy: Export DEPLOYMENT_TARGET before removing environments (#243)
1 parent e0ab950 commit 9bf3773

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ jobs:
6868
id: undeploy
6969
run: |
7070
ssh ${{ secrets.USER}}@${{ secrets.HOST }} -i ${{ steps.ssh.outputs.private-key-path }} /bin/bash <<'EOT'
71+
72+
# Export vars.DEPLOYMENT_TARGET
73+
export DEPLOYMENT_TARGET="${{ vars.DEPLOYMENT_TARGET }}"
74+
echo "DEPLOYMENT_TARGET exported as $DEPLOYMENT_TARGET"
75+
7176
. ${{ steps.path.outputs.spack-config }}/spack-enable.bash
7277
envs=$(find ${{ steps.path.outputs.spack }}/../environments -type d -name '${{ inputs.version-pattern }}' -printf '%f ')
7378

0 commit comments

Comments
 (0)