File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ permissions:
1515jobs :
1616 deploy :
1717 runs-on : ubuntu-latest
18+ env :
19+ VERSION_TAG : nu-${{ inputs.version }}
1820 steps :
1921 - name : Checkout code
2022 uses : actions/checkout@v4
@@ -28,20 +30,20 @@ jobs:
2830
2931 - name : Update version in pom.xml
3032 run : |
31- mvn versions:set -DnewVersion=nu- ${{ inputs.version }} -DgenerateBackupPoms=false
33+ mvn versions:set -DnewVersion=${{ env.VERSION_TAG }} -DgenerateBackupPoms=false
3234
3335 - name : Commit and push version changes
3436 run : |
3537 git config user.name "github-actions[bot]"
3638 git config user.email "github-actions[bot]@users.noreply.github.com"
3739 git add -A
38- git commit -m "chore: bump version to nu- ${{ inputs.version }}"
40+ git commit -m "chore: bump version to ${{ env.VERSION_TAG }}"
3941 git push
4042
4143 - name : Create and push tag
4244 run : |
43- git tag -a "v ${{ inputs.version }}" -m "Release version nu- ${{ inputs.version }}"
44- git push origin "v ${{ inputs.version }}"
45+ git tag -a "${{ env.VERSION_TAG }}" -m "Release version ${{ env.VERSION_TAG }}"
46+ git push origin "${{ env.VERSION_TAG }}"
4547
4648 - name : Configure AWS Credentials
4749 uses : aws-actions/configure-aws-credentials@main
You can’t perform that action at this time.
0 commit comments