Skip to content

Commit 46743bc

Browse files
committed
deploy-2-start.yml: Reverted spack.location.json creation logic
1 parent 0da2b32 commit 46743bc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

+1-3
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,7 @@ jobs:
9999
100100
# Obtain metadata
101101
spack find --paths > ${{ vars.SPACK_LOCATION }}/var/spack/environments/${{ inputs.env-name }}/spack.location
102-
metadata=$(spack find --format '{name}@{version} {prefix}')
103-
metadata_json=$(jq -R '[inputs | split(" ") | {(.[0]): .[1]}] | add' <<< "$metadata")
104-
cat <<< "$metadata_json" > ${{ vars.SPACK_LOCATION }}/var/spack/environments/${{ inputs.env-name }}/spack.location.json
102+
spack find --format '{name}@{version} {prefix}' | jq --raw-input --null-input '[inputs | split(" ") | {(.[0]):(.[1])}] | add' > ${{ vars.SPACK_LOCATION }}/var/spack/environments/${{ inputs.env-name }}/spack.location.json
105103
106104
spack env deactivate
107105
echo "$(date): Deployed ${{ inputs.model }} ${{ inputs.version }} with spack-packages ${{ steps.versions.outputs.packages }}, spack-config ${{ steps.versions.outputs.config }}" >> ${{ vars.SPACK_RELEASE_LOCATION }}/release.log

0 commit comments

Comments
 (0)