Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix stable release step #11

Merged
merged 1 commit into from
Nov 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading