We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e78307 commit 9e15a73Copy full SHA for 9e15a73
scripts/infrastructure/destroy/destroy-redundant-workspaces.sh
@@ -37,12 +37,11 @@ function _destroy_redundant_workspaces() {
37
workspaces=$(aws s3 ls "$bucket" --no-paginate | awk '{print $NF}' | sed 's:/$::')
38
39
# get JIRA ID from branch name
40
+ ENVIRONMENT="dev"
41
if [[ $BRANCH_NAME =~ feature\/(PI-[0-9]+)[-_] ]]; then
42
workspace_id="${BASH_REMATCH[1]}"
- ENVIRONMENT="ref"
43
elif [[ $BRANCH_NAME == *release/* ]]; then
44
workspace_id="${BRANCH_NAME##*release/}"
45
- ENVIRONMENT="dev"
46
fi
47
echo "The workspace ID is: $workspace_id"
48
echo "Destroying workspaces in: $ENVIRONMENT"
0 commit comments