Skip to content

Commit

Permalink
feat(feature-branch): support slash in branch names
Browse files Browse the repository at this point in the history
* Support a slash in branch names by substituting forward slashes with hyphens
  • Loading branch information
Daniel Mora committed Jun 5, 2024
1 parent 491d515 commit 3835d09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/constructs/featureBranchBuilds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class FeatureBranchBuilds extends Construct {
phases: {
install: {
commands: [
'ENV_NAME=$(echo ${BRANCH_NAME} | awk \'{print tolower($0)}\')',
'ENV_NAME=$(echo ${BRANCH_NAME} | awk \'{ gsub("/", "-", $0); print tolower($0); }\')',
...(commands.preInstall || []),
...(commands.install || []),
],
Expand Down

0 comments on commit 3835d09

Please sign in to comment.