Skip to content

Commit

Permalink
deploy-2-start.yml: Reverted spack.location.json creation logic
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeGat committed May 10, 2024
1 parent 0da2b32 commit 46743bc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/deploy-2-start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ jobs:
# Obtain metadata
spack find --paths > ${{ vars.SPACK_LOCATION }}/var/spack/environments/${{ inputs.env-name }}/spack.location
metadata=$(spack find --format '{name}@{version} {prefix}')
metadata_json=$(jq -R '[inputs | split(" ") | {(.[0]): .[1]}] | add' <<< "$metadata")
cat <<< "$metadata_json" > ${{ vars.SPACK_LOCATION }}/var/spack/environments/${{ inputs.env-name }}/spack.location.json
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
spack env deactivate
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
Expand Down

0 comments on commit 46743bc

Please sign in to comment.