From fb397010b5053f322105aabedd23e16ee6037f9a Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Thu, 13 Jul 2023 17:24:41 -0700 Subject: [PATCH] Remove MODULE.bazel version bump from release process (#231) 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 --- .github/update-module-version.sh | 20 -------------------- .github/workflows/create-release.yml | 12 ------------ MODULE.bazel | 5 +---- 3 files changed, 1 insertion(+), 36 deletions(-) delete mode 100755 .github/update-module-version.sh 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 <=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")