From f8912fd6576dd366faa00b5c0b365d6ec68b81aa Mon Sep 17 00:00:00 2001 From: Sam Barker Date: Mon, 11 Mar 2024 13:52:36 +1300 Subject: [PATCH] Ensure we set `--dry-run` on the git push when in dry-run mode. rh-pre-commit.version: 2.0.1 rh-pre-commit.check-secrets: ENABLED --- scripts/stage-release.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/stage-release.sh b/scripts/stage-release.sh index 3b9d97f4c3..592345fbc2 100755 --- a/scripts/stage-release.sh +++ b/scripts/stage-release.sh @@ -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