Skip to content

Commit 884afdc

Browse files
authored
release: Fix release snippet (#651)
We don't put a 'v' prefix on tags, so we shouldn't trim a character from the tag. Also #650 had an incorrect url for stable SHAs 😓
1 parent 4f826d1 commit 884afdc

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
@@ -5,7 +5,7 @@ set -o errexit -o nounset -o pipefail
55
# Set by GH actions, see
66
# https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables
77
TAG=${GITHUB_REF_NAME}
8-
PREFIX="rules_python-${TAG:1}"
8+
PREFIX="rules_python-${TAG}"
99
SHA=$(git archive --format=tar --prefix=${PREFIX}/ ${TAG} | gzip | shasum -a 256 | awk '{print $1}')
1010

1111
cat << EOF
@@ -17,7 +17,7 @@ http_archive(
1717
name = "rules_python",
1818
sha256 = "${SHA}",
1919
strip_prefix = "${PREFIX}",
20-
url = "https://github.com/bazelbuild/rules_python/refs/tags/${TAG}.tar.gz",
20+
url = "https://github.com/bazelbuild/rules_python/archive/refs/tags/${TAG}.tar.gz",
2121
)
2222
\`\`\`
2323
EOF

0 commit comments

Comments
 (0)