Skip to content

Commit 4dad179

Browse files
committed
Update upload-artifacts-to-maven-central.yml to accept hotfixes
1 parent abc7161 commit 4dad179

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/upload-artifacts-to-maven-central.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,16 @@ jobs:
3232
git config --global user.name 'embrace-ci[bot]'
3333
git config --global user.email 'embrace-ci@users.noreply.github.com'
3434
35+
- name: Extract base version (major.minor.0)
36+
id: base_version
37+
run: |
38+
base_version=$(echo '${{ inputs.rc_version }}' | cut -d. -f1,2).0
39+
echo "base_version=$base_version" >> $GITHUB_OUTPUT
40+
3541
- name: Checkout
3642
uses: actions/checkout@v4
3743
with:
38-
ref: release/${{ inputs.rc_version }}
44+
ref: release/${{ steps.base_version.outputs.base_version }}
3945
persist-credentials: true
4046

4147
- name: Setup Java

0 commit comments

Comments
 (0)