Skip to content

Commit e362433

Browse files
authored
Update upload-artifacts-to-maven-central.yml to accept hotfixes (#2367)
## Goal Now we can pass 7.6.1, and it'll checkout release/7.6.0 on the checkout step.
2 parents abc7161 + 5dd1647 commit e362433

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,18 @@ 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+
env:
38+
RC_VERSION: ${{ inputs.rc_version }}
39+
run: |
40+
base_version=$(echo "$RC_VERSION" | cut -d. -f1,2).0
41+
echo "base_version=$base_version" >> $GITHUB_OUTPUT
42+
3543
- name: Checkout
3644
uses: actions/checkout@v4
3745
with:
38-
ref: release/${{ inputs.rc_version }}
46+
ref: release/${{ steps.base_version.outputs.base_version }}
3947
persist-credentials: true
4048

4149
- name: Setup Java

0 commit comments

Comments
 (0)