Skip to content

Commit 55318a5

Browse files
committed
Use envs rather than outputs
1 parent 21d42e0 commit 55318a5

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
@@ -193,6 +193,9 @@ jobs:
193193

194194
- name: Deploy to ${{ inputs.deployment-target }} ${{ inputs.deployment-type }}
195195
id: deploy
196+
env:
197+
SCOPES: ${{ steps.versions.outputs.custom-scopes }}
198+
SCOPES_PATH: ${{ steps.path.outputs.spack-config }}/custom/cd
196199
# ssh into deployment environment, create and activate the env, install the spack manifest.
197200
run: |
198201
ssh ${{ secrets.USER}}@${{ secrets.HOST }} -i ${{ steps.ssh.outputs.private-key-path }} /bin/bash <<'EOT'
@@ -217,11 +220,11 @@ jobs:
217220
218221
# Finally, install the spack manifest
219222
spack --debug \
220-
$(for s in ${{ steps.versions.outputs.custom-scopes }}; do echo -n "--custom-scope $s "; done) \
223+
$(for s in ${{ env.SCOPES }}; do echo -n "--custom-scope ${{ env.SCOPES_PATH }}/$s "; done) \
221224
install --fail-fast --fresh ${{ vars.SPACK_INSTALL_ADDITIONAL_ARGS }} || exit $?
222225
223226
spack \
224-
$(for s in ${{ steps.versions.outputs.custom-scopes }}; do echo -n "--custom-scope $s "; done) \
227+
$(for s in ${{ env.SCOPES }}; do echo -n "--custom-scope ${{ env.SCOPES_PATH }}/$s "; done) \
225228
module tcl refresh -y
226229
EOT
227230

0 commit comments

Comments
 (0)