Skip to content

Commit ad48379

Browse files
authored
Merge pull request #34 from cryptlex/ahmad/update-ci
chore: updated ci workflow
2 parents 45876c8 + 0c45308 commit ad48379

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/maven-publish.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ jobs:
2727

2828
- name: Check Maven version
2929
run: mvn -version
30-
31-
- name: Update Version in pom.xml
32-
run: mvn -B versions:set -DnewVersion=${{ github.event.inputs.packageVersion }} -DgenerateBackupPoms=false
3330

3431
- name: Publish to Central Portal
3532
run: mvn -B -e clean deploy -Pdeploy -Drevision=${{ github.event.inputs.packageVersion }}

.github/workflows/update-version.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@ jobs:
2525
- name: Update Version
2626
run: |
2727
sed -i '/VERSION=/!b;cVERSION=\"v${{ github.event.inputs.libraryVersion }}";' ./download-libs.sh
28+
sed -i '/<packaging>jar<\/packaging>/,/<name>/s/<version>[^<]*<\/version>/<version>${{ github.event.inputs.libraryVersion }}<\/version>/' pom.xml
2829
- name: Commit, Tag and Push
2930
run: |
3031
git add ./download-libs.sh
32+
git add pom.xml
3133
git config user.name github-actions
3234
git config user.email github-actions@github.com
33-
git commit -m "updated version" | exit 0
35+
git commit -m "chore(package version): updated version" | exit 0
3436
git tag ${{ github.event.inputs.packageVersion }}
3537
git push --set-upstream origin release/${{ github.event.inputs.packageVersion }}
3638
git push --tags

0 commit comments

Comments
 (0)