diff --git a/.github/workflows/release_poc.yaml b/.github/workflows/release_poc.yaml index 350c5d6..8168b7e 100644 --- a/.github/workflows/release_poc.yaml +++ b/.github/workflows/release_poc.yaml @@ -55,7 +55,7 @@ jobs: echo " Snapshot Version -- ${{steps.newSnapshotVersion.outputs.SnapshotVersion}}" echo " Release Version -- ${{steps.splitVersion.outputs._0}}" - set_and_build_release: + set_build_and_tag_release: runs-on: ubuntu-latest needs: initialization permissions: @@ -83,4 +83,26 @@ jobs: sha: context.sha }) - \ No newline at end of file + set_build_and_tag_release: + runs-on: ubuntu-latest + needs: + - initialization + - set_build_and_tag_release + permissions: + contents: write + steps: + - name: Checkout Code Repository + uses: actions/checkout@v4 + - name: Downloading Java + uses: actions/setup-java@v4 + with: + java-version: '21' + distribution: 'temurin' + - name: Set Release Version + run: mvn -B versions:set -DnewVersion=${{needs.initialization.outputs.SNAPSHOT_VERSION}} -DgenerateBackupPoms=false + - name: Commit & Push + run: | + git add . + git commit -m 'Set next dev version to ${nextDevVersion}' + git push origin HEAD:${BRANCH_NAME} + git push --tags origin \ No newline at end of file