Skip to content

Commit 9b44189

Browse files
committed
Added /releases section to git url
1 parent 93f7a6c commit 9b44189

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

+5-2
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,13 @@ jobs:
128128
jq -n '{}' > ${{ env.SPACK_ENV_PATH }}/build-db-pkgs.json
129129
for pkg in ${{ vars.BUILD_DB_PACKAGES }}; do
130130
# TODO: Is there a way to get the git attribute without concretizing?
131-
pkg_repo=$(spack python -c "import spack.spec; print(spack.spec.Spec('$pkg').concretized().package.git)")
131+
pkg_repo_url=$(spack python -c "import spack.spec; print(spack.spec.Spec('$pkg').concretized().package.git)")
132+
echo "$pkg git URL is $pkg_repo_url"
133+
134+
pkg_release_url="${pkg_repo_url%.*}/releases"
132135
jq \
133136
--arg p "$pkg" \
134-
--arg r "$pkg_repo" \
137+
--arg r "$pkg_release_url" \
135138
'. += {($p): ($r)}' \
136139
${{ env.SPACK_ENV_PATH }}/build-db-pkgs.json > ${{ env.SPACK_ENV_PATH }}/build-db-pkgs.json.tmp
137140
mv -f ${{ env.SPACK_ENV_PATH }}/build-db-pkgs.json.tmp ${{ env.SPACK_ENV_PATH }}/build-db-pkgs.json

0 commit comments

Comments
 (0)