Skip to content

Commit

Permalink
deploy-2-start.yml: Added tag to the end of the pkg_release_url
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeGat committed Aug 28, 2024
1 parent 9b44189 commit a49d05d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy-2-start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down

0 comments on commit a49d05d

Please sign in to comment.