Skip to content

Commit

Permalink
Inline single PRERELEASE use in tag-pushed.yml.
Browse files Browse the repository at this point in the history
Partial mas-cli#638

Signed-off-by: Ross Goldberg <[email protected]>
  • Loading branch information
rgoldberg committed Dec 20, 2024
1 parent 4fb49d9 commit 42ab8a5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/tag-pushed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ defaults:
shell: arch -arm64 /bin/zsh {0}
env:
DEFAULT_BRANCH_NAME: ${{github.event.repository.default_branch}}
PRERELEASE: ${{contains(github.event.release.tag_name, '-') && '--prerelease' || ''}}
jobs:
tag-pushed:
if: github.repository == 'mas-cli/mas'
Expand Down Expand Up @@ -51,7 +50,7 @@ jobs:
- name: 📝 Create draft release
run: |
gh release create -d --generate-notes ${PRERELEASE} "${GITHUB_REF_NAME}"
gh release create -d --generate-notes ${"${GITHUB_REF_NAME//[^-]/}":+-p} "${GITHUB_REF_NAME}"
- name: 📤 Upload installer
run: |
Expand Down

0 comments on commit 42ab8a5

Please sign in to comment.