Skip to content

Commit

Permalink
fix: set RELEASE env variable only for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
stempler committed Mar 31, 2024
1 parent 4c35b73 commit d146b8f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ runs:
- "@semantic-release/changelog"
- - "@semantic-release/exec"
- prepareCmd: ./gradlew "-PnewVersion=\${nextRelease.version}" setReleaseVersion
publishCmd: ./gradlew showVersion verifyReleaseVersion \$PUBLISH_TASKS
publishCmd: RELEASE=true ./gradlew showVersion verifyReleaseVersion \$PUBLISH_TASKS
- - "@semantic-release/git"
- assets:
- CHANGELOG.md
Expand Down Expand Up @@ -85,8 +85,6 @@ runs:

# Tasks as environment variable
PUBLISH_TASKS: ${{ inputs.release-tasks != '' && inputs.release-tasks || inputs.publish-tasks }}
# Mark as release despite repo being dirty during build
RELEASE: 'true'
with:
dry_run: ${{ inputs.release-dryrun }}
semantic_version: 23.0.5
Expand Down

0 comments on commit d146b8f

Please sign in to comment.