Skip to content

Commit fcd69fe

Browse files
committed
deploy-2-start.yml: Added tag to the end of the pkg_release_url
1 parent 9b44189 commit fcd69fe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

+3-2
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,10 @@ jobs:
129129
for pkg in ${{ vars.BUILD_DB_PACKAGES }}; do
130130
# TODO: Is there a way to get the git attribute without concretizing?
131131
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"
132+
version=$(spack find --json ${pkg} | jq -cr '.[0].version')
133+
pkg_release_url="${pkg_repo_url%.*}/releases/tag/${version}"
133134
134-
pkg_release_url="${pkg_repo_url%.*}/releases"
135+
echo "$pkg pkg_repo_url is $pkg_repo_url, pkg_release_url is $pkg_release_url, version is $version"
135136
jq \
136137
--arg p "$pkg" \
137138
--arg r "$pkg_release_url" \

0 commit comments

Comments
 (0)