Skip to content

Commit dee3e99

Browse files
committed
update script
1 parent 14ea90f commit dee3e99

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cicd/2-cicd/deploy-cicd.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ if [ "$TARGET_BRANCH" == "main" ]
2020
then
2121
STACK_NAME="javabuilder-cicd"
2222
else
23-
STACK_NAME=${"javabuilder-$TARGET_BRANCH-cicd"}
23+
# replace any "/" characters in the branch name with "-". "/" is not allowed in a stack name.
24+
TARGET_BRANCH="${TARGET_BRANCH/\//-}"
25+
STACK_NAME="javabuilder-${TARGET_BRANCH}-cicd"
2426
fi
2527

2628
MODE=${MODE-'standard'}

0 commit comments

Comments
 (0)