From f999c23ab34a681001b21d4a1c8dbba6936e59c4 Mon Sep 17 00:00:00 2001 From: Andrea Morabito <78792023+and-mora@users.noreply.github.com> Date: Mon, 18 Nov 2024 14:32:32 +0100 Subject: [PATCH] chore: fix stable release step (#11) --- .github/workflows/post-merge.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/post-merge.yml b/.github/workflows/post-merge.yml index c582d9c..5e758a2 100644 --- a/.github/workflows/post-merge.yml +++ b/.github/workflows/post-merge.yml @@ -57,9 +57,9 @@ jobs: dry_run: true # - # RELEASE CANDIDATE - Update of pom.xml with the RC new version. + # RELEASE CANDIDATE - Update of gradle.properties with the RC new version. # - - name: RELEASE CANDIDATE - Update of pom.xml with the new version + - name: RELEASE CANDIDATE - Update of gradle.properties with the new version if: steps.semantic.outputs.new_release_published == 'true' run: | sed -i -e "s/version=.*/version=${{ steps.semantic.outputs.new_release_version }}-RC/g" gradle.properties @@ -138,15 +138,15 @@ jobs: # --env-var "clientSecretForMilDebtPosition=${{ secrets.NEWMAN_IT__CLIENTSECRETFORMILDEBTPOSITION }}" # - # STABLE - Update of pom.xml with the new version. + # STABLE - Update of gradle.properties with the new version. # - - name: STABLE - Update of pom.xml with the new version + - name: STABLE - Update of gradle.properties with the new version if: steps.semantic.outputs.new_release_published == 'true' run: | - ${{ runner.temp }}/maven/bin/mvn versions:set -DnewVersion=${{ steps.semantic.outputs.new_release_version }} -s ${{ runner.temp }}/settings.xml --no-transfer-progress + sed -i -e "s/version=.*/version=${{ steps.semantic.outputs.new_release_version }}/g" gradle.properties git config user.name "GitHub Workflow" git config user.email "<>" - git add pom.xml + git add gradle.properties git commit -m "Updated with new version ${{ steps.semantic.outputs.new_release_version }}" git push origin main