Skip to content

Commit

Permalink
Include release flags (#4)
Browse files Browse the repository at this point in the history
* Introduce create_release flag
* Read from project metadata
  • Loading branch information
gastaldi authored Oct 24, 2024
1 parent 06bfb9d commit 90ac21d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ on:
description: Java Version
type: number
default: 21
create_release:
required: false
description: Create Release ?
type: boolean
default: true
# Map the workflow outputs to job outputs
outputs:
release-version:
Expand Down Expand Up @@ -132,6 +137,9 @@ jobs:
echo "next-version=${NEXT_VERSION}" >> $GITHUB_OUTPUT
- name: Create GitHub Release
run: gh release create ${CURRENT_VERSION} --generate-notes
if: ${{ inputs.create_release }}
run: gh release create ${CURRENT_VERSION} --generate-notes --latest=${LATEST_RELEASE} --prerelease=${PRE_RELEASE}
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
PRE_RELEASE: ${{ steps.metadata.outputs.pre-release == 'true' }}
LATEST_RELEASE: ${{ !steps.metadata.outputs.latest || (steps.metadata.outputs.latest == 'true') }}

0 comments on commit 90ac21d

Please sign in to comment.