Skip to content

Commit

Permalink
Merge pull request kroxylicious#1077 from SamBarker/dry-run-release
Browse files Browse the repository at this point in the history
Ensure we set `--dry-run` on the git push when in dry-run mode.
  • Loading branch information
SamBarker authored Mar 11, 2024
2 parents 287b464 + f8912fd commit fee0ae0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/stage-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ if [[ "${DRY_RUN:-false}" == true ]]; then
# shellcheck disable=SC2059
printf "${BLUE}Dry-run mode:${NC} no remote tags or PRs will be created, artefacts will be deployed to: ${DEPLOY_DRY_RUN_DIR}\n"
MVN_DEPLOY_DRYRUN="-DaltDeploymentRepository=ossrh::file:${DEPLOY_DRY_RUN_DIR}"
GIT_DRYRUN="--dry-run"
else
MVN_DEPLOY_DRYRUN=""
fi
Expand Down

0 comments on commit fee0ae0

Please sign in to comment.