-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:SaptarshiSarkar12/Drifty into 280…
…-add-splash-screen
- Loading branch information
Showing
2 changed files
with
35 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Bump Project Version | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
new_version: | ||
description: 'New version to bump to' | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
bump-version: | ||
name: Bump Project Version | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Project | ||
uses: actions/checkout@v4 | ||
- 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 |