diff options
author | Keith Smiley <keithbsmiley@gmail.com> | 2023-07-13 17:24:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-13 17:24:41 -0700 |
commit | fb397010b5053f322105aabedd23e16ee6037f9a (patch) | |
tree | 3ae336950749867c119cc805d36c160a83bc2bbd | |
parent | 68b6edfd6127b5761cecb48923b264a503167de3 (diff) | |
download | bazelbuild-apple_support-fb397010b5053f322105aabedd23e16ee6037f9a.tar.gz |
Remove MODULE.bazel version bump from release process (#231)upstream/1.8.0
It turns out it really doesn't matter what this version is in the repo,
so we can simplify our release process a bit by not needing to generate
this file, or merge a PR updating it
-rwxr-xr-x | .github/update-module-version.sh | 20 | ||||
-rw-r--r-- | .github/workflows/create-release.yml | 12 | ||||
-rw-r--r-- | MODULE.bazel | 5 |
3 files changed, 1 insertions, 36 deletions
diff --git a/.github/update-module-version.sh b/.github/update-module-version.sh deleted file mode 100755 index 8b02261..0000000 --- a/.github/update-module-version.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash - -set -euo pipefail - -readonly new_version=$1 - -cat > MODULE.bazel.new <<EOF -# Generated by update-module-version.sh. DO NOT EDIT. -module( - name = "apple_support", - version = "$new_version", - bazel_compatibility = [">=6.0.0"], - compatibility_level = 1, - repo_name = "build_bazel_apple_support", -) - -EOF - -grep "# --- " -A1000 MODULE.bazel >> MODULE.bazel.new -mv MODULE.bazel.new MODULE.bazel diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 9c8cf00..6d7335e 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -18,18 +18,6 @@ jobs: run: | set -euo pipefail - git config user.name "Automatic version bump" - git config user.email "noreply@github.com" - - ./.github/update-module-version.sh "$TAG" - tmp_branch="$(uuidgen)" - git checkout -b "$tmp_branch" - git add MODULE.bazel - msg="Update MODULE.bazel to $TAG" - git commit -m "$msg" - git push -u origin "$tmp_branch" - gh pr create --title "$msg" --body "" - COPYFILE_DISABLE=1 tar czvf "apple_support.$TAG.tar.gz" ./* ./.github/generate-notes.sh "$TAG" | tee notes.md gh release create "$TAG" --title "$TAG" --target "$GITHUB_REF_NAME" --notes-file notes.md "apple_support.$TAG.tar.gz" diff --git a/MODULE.bazel b/MODULE.bazel index d24858d..e6a394a 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -1,14 +1,11 @@ -# Generated by update-module-version.sh. DO NOT EDIT. module( name = "apple_support", - version = "1.7.1", + version = "0", bazel_compatibility = [">=6.0.0"], compatibility_level = 1, repo_name = "build_bazel_apple_support", ) -# --- End generated content - bazel_dep(name = "bazel_skylib", version = "1.3.0") bazel_dep(name = "platforms", version = "0.0.4") |