Skip to content

Commit

Permalink
Added /releases section to git url
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeGat committed Aug 28, 2024
1 parent 93f7a6c commit 9b44189
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/deploy-2-start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,13 @@ jobs:
jq -n '{}' > ${{ env.SPACK_ENV_PATH }}/build-db-pkgs.json
for pkg in ${{ vars.BUILD_DB_PACKAGES }}; do
# TODO: Is there a way to get the git attribute without concretizing?
pkg_repo=$(spack python -c "import spack.spec; print(spack.spec.Spec('$pkg').concretized().package.git)")
pkg_repo_url=$(spack python -c "import spack.spec; print(spack.spec.Spec('$pkg').concretized().package.git)")
echo "$pkg git URL is $pkg_repo_url"
pkg_release_url="${pkg_repo_url%.*}/releases"
jq \
--arg p "$pkg" \
--arg r "$pkg_repo" \
--arg r "$pkg_release_url" \
'. += {($p): ($r)}' \
${{ env.SPACK_ENV_PATH }}/build-db-pkgs.json > ${{ env.SPACK_ENV_PATH }}/build-db-pkgs.json.tmp
mv -f ${{ env.SPACK_ENV_PATH }}/build-db-pkgs.json.tmp ${{ env.SPACK_ENV_PATH }}/build-db-pkgs.json
Expand Down

0 comments on commit 9b44189

Please sign in to comment.