We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f826d1 commit 884afdcCopy full SHA for 884afdc
.github/workflows/workspace_snippet.sh
@@ -5,7 +5,7 @@ set -o errexit -o nounset -o pipefail
5
# Set by GH actions, see
6
# https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables
7
TAG=${GITHUB_REF_NAME}
8
-PREFIX="rules_python-${TAG:1}"
+PREFIX="rules_python-${TAG}"
9
SHA=$(git archive --format=tar --prefix=${PREFIX}/ ${TAG} | gzip | shasum -a 256 | awk '{print $1}')
10
11
cat << EOF
@@ -17,7 +17,7 @@ http_archive(
17
name = "rules_python",
18
sha256 = "${SHA}",
19
strip_prefix = "${PREFIX}",
20
- url = "https://github.com/bazelbuild/rules_python/refs/tags/${TAG}.tar.gz",
+ url = "https://github.com/bazelbuild/rules_python/archive/refs/tags/${TAG}.tar.gz",
21
)
22
\`\`\`
23
EOF
0 commit comments