From a49d05d59537b3ebcfdedac64a99632216ec15c8 Mon Sep 17 00:00:00 2001 From: Tommy Gatti Date: Thu, 29 Aug 2024 08:35:42 +1000 Subject: [PATCH] deploy-2-start.yml: Added tag to the end of the pkg_release_url --- .github/workflows/deploy-2-start.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-2-start.yml b/.github/workflows/deploy-2-start.yml index 3b649cb..8fa70c3 100644 --- a/.github/workflows/deploy-2-start.yml +++ b/.github/workflows/deploy-2-start.yml @@ -129,9 +129,11 @@ jobs: for pkg in ${{ vars.BUILD_DB_PACKAGES }}; do # TODO: Is there a way to get the git attribute without concretizing? 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" + version=$(spack find --json ${pkg} | jq -cr '.[0].version') - pkg_release_url="${pkg_repo_url%.*}/releases" + echo "$pkg git URL is $pkg_repo_url, version is ${version}" + + pkg_release_url="${pkg_repo_url%.*}/releases/tag/${version}" jq \ --arg p "$pkg" \ --arg r "$pkg_release_url" \