Skip to content

Commit

Permalink
chore: fix stable release step (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
and-mora authored Nov 18, 2024
1 parent fb2f036 commit f999c23
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/post-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f999c23

Please sign in to comment.