🔧 Add PRE_RELEASE var to release workflow

This commit is contained in:
Ben Chatelain 2024-11-03 12:17:31 -07:00
parent 58f9fbcc8c
commit 2ccdb03486
No known key found for this signature in database

View file

@ -39,6 +39,10 @@ jobs:
run: | run: |
echo "MAS_VERSION=${{ github.event.release.tag_name }}" >>"$GITHUB_OUTPUT" echo "MAS_VERSION=${{ github.event.release.tag_name }}" >>"$GITHUB_OUTPUT"
- id: pre_release
run: |
echo "PRE_RELEASE=$(grep -q '-' <<<"$MAS_VERSION" && echo 'true' || echo 'false')" >>"$GITHUB_OUTPUT"
- id: release_branch - id: release_branch
run: | run: |
echo "RELEASE_BRANCH=releases/release-${{ github.event.release.tag_name }}" >>"$GITHUB_OUTPUT" echo "RELEASE_BRANCH=releases/release-${{ github.event.release.tag_name }}" >>"$GITHUB_OUTPUT"