From 401c82b28d8cae2b4953f292ddd493a4d8013907 Mon Sep 17 00:00:00 2001 From: Ben Chatelain Date: Sun, 17 Nov 2024 11:33:05 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Use=20tag=20name=20to=20calculat?= =?UTF-8?q?e=20PRE=5FRELEASE=20value?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The MAS_VERSION env var isn't made available to the pre_release step --- .github/workflows/release.yml | 2 +- script/brew_core_update | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 740e1d5..c4d999c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,7 +38,7 @@ jobs: - id: pre_release run: | - echo "PRE_RELEASE=$(grep -q '-' <<<"${MAS_VERSION}" && echo 'true' || echo 'false')" >>"${GITHUB_OUTPUT}" + echo "PRE_RELEASE=$(grep -q '-' <<<"${{ github.event.release.tag_name }}" && echo 'true' || echo 'false')" >>"${GITHUB_OUTPUT}" pkg-installer: runs-on: macos-15 diff --git a/script/brew_core_update b/script/brew_core_update index 6b1e10b..1b0fb0e 100755 --- a/script/brew_core_update +++ b/script/brew_core_update @@ -50,10 +50,10 @@ echo "==> 🧪 Updating mas homebrew-core formula to version tag ${version_tag} brew bump-formula-pr \ --tag "${version_tag}" \ --revision "${revision}" \ - --strict \ - --online \ - --verbose \ - --no-browse \ --fork-org mas-cli \ + --no-browse \ + --online \ + --strict \ + --verbose \ ${dry_run} \ mas