🩹 Use tag name to calculate PRE_RELEASE value

The MAS_VERSION env var isn't made available to the pre_release step
This commit is contained in:
Ben Chatelain 2024-11-17 11:33:05 -07:00
parent d6978a2931
commit 401c82b28d
No known key found for this signature in database
2 changed files with 5 additions and 5 deletions

View file

@ -38,7 +38,7 @@ jobs:
- id: pre_release - id: pre_release
run: | 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: pkg-installer:
runs-on: macos-15 runs-on: macos-15

View file

@ -50,10 +50,10 @@ echo "==> 🧪 Updating mas homebrew-core formula to version tag ${version_tag}
brew bump-formula-pr \ brew bump-formula-pr \
--tag "${version_tag}" \ --tag "${version_tag}" \
--revision "${revision}" \ --revision "${revision}" \
--strict \
--online \
--verbose \
--no-browse \
--fork-org mas-cli \ --fork-org mas-cli \
--no-browse \
--online \
--strict \
--verbose \
${dry_run} \ ${dry_run} \
mas mas