Skip to content

Commit

Permalink
feat(CI): Added project version-bump workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SaptarshiSarkar12 committed Dec 29, 2023
1 parent dffba32 commit ab51d12
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,14 @@ jobs:
- name: Bump Project Version
run: |
mvn versions:set -D newVersion=${{ inputs.new_version }} -D generateBackupPoms=false
sed -i 's/"version": "[0-9].[0-9].[0-9]"/"version": "${{ inputs.new_version }}"/g' version.json
- name: Commit Version Bump
run: |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git add .
if [[ $(git status --porcelain) ]]; then
git commit -m "chore: Bump project version to ${{ inputs.new_version }}"
fi
- name: Push new version
run: git push

1 comment on commit ab51d12

@vercel
Copy link

@vercel vercel bot commented on ab51d12 Dec 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.