Skip to content

Commit 388144a

Browse files
committed
Use envs rather than outputs
1 parent 2ae712a commit 388144a

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/deploy-2-start.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,9 @@ jobs:
186186
187187
- name: Deploy to ${{ inputs.deployment-target }} ${{ inputs.deployment-type }}
188188
id: deploy
189+
env:
190+
SCOPES: ${{ steps.versions.outputs.custom-scopes }}
191+
SCOPES_PATH: ${{ steps.path.outputs.spack-config }}/custom/cd
189192
# ssh into deployment environment, create and activate the env, install the spack manifest.
190193
run: |
191194
ssh ${{ secrets.USER}}@${{ secrets.HOST }} -i ${{ steps.ssh.outputs.private-key-path }} /bin/bash <<'EOT'
@@ -207,11 +210,11 @@ jobs:
207210
208211
# Finally, install the spack manifest
209212
spack --debug \
210-
$(for s in ${{ steps.versions.outputs.custom-scopes }}; do echo -n "--custom-scope $s "; done) \
213+
$(for s in ${{ env.SCOPES }}; do echo -n "--custom-scope ${{ env.SCOPES_PATH }}/$s "; done) \
211214
install --fail-fast --fresh ${{ vars.SPACK_INSTALL_ADDITIONAL_ARGS }} || exit $?
212215
213216
spack \
214-
$(for s in ${{ steps.versions.outputs.custom-scopes }}; do echo -n "--custom-scope $s "; done) \
217+
$(for s in ${{ env.SCOPES }}; do echo -n "--custom-scope ${{ env.SCOPES_PATH }}/$s "; done) \
215218
module tcl refresh -y
216219
EOT
217220

0 commit comments

Comments
 (0)