Skip to content

Commit 5abc62b

Browse files
authored
Ensure that the release workflow generates correct release notes (#102)
While I'm not convinced we're calculating the SHA256 correctly, the URL and the `strip_prefix` are now better.
1 parent ffadd1a commit 5abc62b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/workspace_snippet.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -eufo pipefail
44
# Set by GH actions, see
55
# https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables
66
TAG=${GITHUB_REF_NAME}
7-
PREFIX="contrib_rules_jvm-${TAG:1}"
7+
PREFIX="rules_jvm-${TAG:1}"
88
SHA=$(git archive --format=tar --prefix=${PREFIX}/ ${TAG} | gzip | shasum -a 256 | awk '{print $1}')
99

1010
cat << EOF
@@ -15,7 +15,7 @@ http_archive(
1515
name = "contrib_rules_jvm",
1616
sha256 = "${SHA}",
1717
strip_prefix = "${PREFIX}",
18-
url = "https://github.com/bazel-contrib/contrib_rules_jvm/archive/${TAG}.tar.gz",
18+
url = "https://github.com/bazel-contrib/rules_jvm/archive/refs/tags/${TAG}.tar.gz",
1919
)
2020
2121
# Fetches the contrib_rules_jvm dependencies.

0 commit comments

Comments
 (0)