From 2b4ab793791c22482d5ca54a63a894d6da617f9e Mon Sep 17 00:00:00 2001 From: Marc Guasch Date: Fri, 14 Jul 2023 16:16:49 +0200 Subject: [PATCH] Create local var --- .buildkite/scripts/steps/dra-publish.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.buildkite/scripts/steps/dra-publish.sh b/.buildkite/scripts/steps/dra-publish.sh index b9210a8eb78..919674f581e 100755 --- a/.buildkite/scripts/steps/dra-publish.sh +++ b/.buildkite/scripts/steps/dra-publish.sh @@ -5,9 +5,9 @@ set -uo pipefail source .buildkite/scripts/bootstrap.sh # Publish DRA artifacts +FORCE_NO_DRA_DRY_RUN=$FORCE_NO_DRA_DRY_RUN function run_release_manager() { echo "+++ Publishing $BUILDKITE_BRANCH ${WORKFLOW} DRA artifacts..." - force_dry_run="${FORCE_NO_DRA_DRY_RUN}" dry_run="" if [ "$BUILDKITE_PULL_REQUEST" != "false" ]; then dry_run="--dry-run" @@ -15,7 +15,7 @@ function run_release_manager() { # because the PR branch does not have a project folder in release-manager BRANCH=main fi - if [ $force_dry_run == "true" ]; then + if [ "$FORCE_NO_DRA_DRY_RUN" == "true" ]; then dry_run="" fi docker run --rm \