-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
OmOmofonmwan
committed
Jun 13, 2024
1 parent
c174a36
commit efe8fb7
Showing
1 changed file
with
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ on: | |
release_version: | ||
type: string | ||
required: true | ||
snapshot_version: | ||
development_version: | ||
type: string | ||
required: true | ||
|
||
|
@@ -20,7 +20,7 @@ jobs: | |
steps: | ||
- name: Print Versions | ||
run: | | ||
echo "Next Dev Version: ${{inputs.snapshot_version}}" | ||
echo "Next Dev Version: ${{inputs.development_version}}" | ||
echo "Next Release Version: ${{inputs.release_version}}" | ||
- name: Checkout Code Repository | ||
uses: actions/checkout@v4 | ||
|
@@ -59,13 +59,13 @@ jobs: | |
java-version: '21' | ||
distribution: 'temurin' | ||
- name: Set Dev Version | ||
run: mvn -B versions:set -DnewVersion=${{github.event.inputs.snapshot_version}}-SNAPSHOT -DgenerateBackupPoms=false | ||
run: mvn -B versions:set -DnewVersion=${{github.event.inputs.development_version}}-SNAPSHOT -DgenerateBackupPoms=false | ||
- name: Commit & Push | ||
run: | | ||
git add . | ||
git config user.name fda_shield_omoruyi | ||
git config user.email [email protected] | ||
git commit -m 'Set next dev version to ${{github.event.inputs.snapshot_version}}-SNAPSHOT' | ||
git commit -m 'Set next dev version to ${{github.event.inputs.development_version}}-SNAPSHOT' | ||
git push origin HEAD:main | ||
git push --tags origin | ||
|