Skip to content

Commit fe18ee0

Browse files
author
Lars Gohlke
committed
adds presetting of CI_COMMIT_REF_NAME in tf_plan to simulate another branch
1 parent ba1c409 commit fe18ee0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/terraform.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ function tf_plan {
154154
if [[ $HOSTNAME =~ "bwpm-"* ]]; then
155155
export CI=true
156156
# shellcheck disable=SC2155
157-
export CI_COMMIT_REF_NAME=$(git branch --show-current)
157+
export CI_COMMIT_REF_NAME=${CI_COMMIT_REF_NAME:$(git branch --show-current)}
158158
# shellcheck disable=SC2155
159159
# shellcheck disable=SC2046
160160
local remote=$(git config get branch.$(git branch --show-current).remote)

0 commit comments

Comments
 (0)