Skip to content

Commit 8267bde

Browse files
authored
Fix version number in MAVEN url (#36)
Signed-off-by: Partho Sarthi <[email protected]>
1 parent b0109ca commit 8267bde

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/release.yml

+12-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- 'v*' # Trigger only on tags starting with 'v'
88

99
env:
10-
MAVEN_URL: "https://repo1.maven.org/maven2/com/nvidia/rapids-4-spark-tools_2.12/${{ github.ref_name.replace('v', '') }}"
10+
MAVEN_URL: "https://repo1.maven.org/maven2/com/nvidia/rapids-4-spark-tools_2.12/"
1111
PYPI_URL: "https://pypi.org/project/spark-rapids-user-tools/"
1212

1313
jobs:
@@ -45,6 +45,16 @@ jobs:
4545
git commit -m "Update changelogs"
4646
git push origin main
4747
48+
- name: Set Version Number
49+
id: set_version
50+
run: |
51+
# Extract version number from the tag (e.g., 'v1.2.3' -> '1.2.3')
52+
VERSION=${{ github.ref_name }}
53+
VERSION=${VERSION#v} # Remove 'v' prefix
54+
55+
# Set the extracted version as an environment variable
56+
echo "VERSION=${VERSION}" >> $GITHUB_ENV
57+
4858
- name: Create Release
4959
id: create_release
5060
uses: actions/create-release@v1
@@ -56,7 +66,7 @@ jobs:
5666
body: |
5767
## Packages
5868
59-
- Maven Release: ${{ env.MAVEN_URL }}
69+
- Maven Release: ${{ env.MAVEN_URL }}/${{ env.VERSION }}
6070
- PyPI Package: ${{ env.PYPI_URL }}
6171
6272
## Changes

0 commit comments

Comments
 (0)