-
-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically update versions in MODULE.bazel
- Loading branch information
1 parent
df8ee5a
commit e4fad4e
Showing
2 changed files
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,17 @@ | |
|
||
set -o errexit -o nounset -o pipefail | ||
|
||
git config user.email "[email protected]" | ||
git config user.name "Your Name" | ||
|
||
# Set by GH actions, see | ||
# https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables | ||
tag=${GITHUB_REF_NAME} | ||
# The prefix is chosen to match what GitHub generates for source archives | ||
prefix="toolchains_llvm-${tag}" | ||
archive="toolchains_llvm-${tag}.tar.gz" | ||
git archive --format=tar --prefix="${prefix}/" "${tag}" | gzip >"${archive}" | ||
sed -i.bak "s/0.0.0/${tag}/" MODULE.bazel && git add MODULE.bazel && git commit -m "Update version" >/dev/null | ||
git archive --format=tar --prefix="${prefix}/" HEAD | gzip >"${archive}" | ||
sha=$(shasum -a 256 "${archive}" | cut -f1 -d' ') | ||
|
||
sed \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
|
||
module( | ||
name = "toolchains_llvm", | ||
version = "0.10.0", | ||
version = "0.0.0", | ||
compatibility_level = 0, | ||
) | ||
|
||
|