Skip to content

Commit

Permalink
fix: push changes set to false to avoid pushing tag changes to main
Browse files Browse the repository at this point in the history
  • Loading branch information
nramc committed Nov 10, 2024
1 parent e36e62c commit 9ef7026
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
git config --global user.name "Deploy Bot"
- name: Prepare Release with specified version
run: mvn --batch-mode --no-transfer-progress -Pgithub -DpushChanges=true release:prepare release:perform -DscmCommentPrefix='chore:' -DreleaseVersion=${{ inputs.releaseVersion }} -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
run: mvn --batch-mode --no-transfer-progress -Pgithub -DpushChanges=false release:prepare release:perform -DscmCommentPrefix='chore:' -DreleaseVersion=${{ inputs.releaseVersion }} -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
if: inputs.releaseVersion != '0.0.0' && inputs.releaseVersion != ''
env:
GITHUB_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
Expand All @@ -52,7 +52,7 @@ jobs:
GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}

- name: Prepare Release with default minor version increment
run: mvn -B --batch-mode --no-transfer-progress -Pgithub -DpushChanges=true release:prepare release:perform -DscmCommentPrefix='chore:' -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
run: mvn -B --batch-mode --no-transfer-progress -Pgithub -DpushChanges=false release:prepare release:perform -DscmCommentPrefix='chore:' -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
if: inputs.releaseVersion == '0.0.0' || inputs.releaseVersion == ''
env:
GITHUB_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>io.github.nramc</groupId>
<artifactId>geojson4j</artifactId>
<version>0.1.0</version>
<version>0.3.0-SNAPSHOT</version>

<description>
A lightweight Java library for working with GeoJSON data, compliant with RFC 7946. geojson4j provides
Expand All @@ -17,7 +17,7 @@
<url>https://github.com/nramc/geojson4j</url>
<connection>scm:git:https://github.com/nramc/geojson4j.git</connection>
<developerConnection>scm:git:https://github.com/nramc/geojson4j.git</developerConnection>
<tag>v0.1.0</tag>
<tag>HEAD</tag>
</scm>
<distributionManagement>
<repository>
Expand Down

0 comments on commit 9ef7026

Please sign in to comment.