Skip to content

Commit

Permalink
Add input for RC version to release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jperedadnr committed Oct 30, 2024
1 parent 72791a2 commit dde33a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
options:
- RC
- GA
version:
type: string
default: ''
description: 'If candidate is RC, set a version like RC1 or RC2, else leave it empty'

env:
JAVA_RELEASE: '23'
Expand Down Expand Up @@ -53,7 +57,7 @@ jobs:
S3_PATH=$PROJECT_VERSION
CANDIDATE=${{ github.event.inputs.candidate }}
if [[ "$CANDIDATE" == RC ]]; then
PROJECT_VERSION=${PROJECT_VERSION}-RC
PROJECT_VERSION=${PROJECT_VERSION}-${{ github.event.inputs.version }}
S3_PATH=RC/$PROJECT_VERSION
fi
echo "Releasing.. "$PROJECT_VERSION
Expand Down

0 comments on commit dde33a7

Please sign in to comment.