Skip to content
Snippets Groups Projects
Commit b4dee406 authored by jurgenhaas's avatar jurgenhaas
Browse files

gitlab-ci-cd/drupal#51 Make sure sanitized branch name is always lowercase

parent ef26f34a
No related branches found
Tags v2.2.9
1 merge request!46Merging develop into main
......@@ -18,7 +18,7 @@ if [[ "$CI_COMMIT_REF_NAME" = "" ]]; then
else
PROJECT_BRANCH=$CI_COMMIT_REF_NAME
fi
PROJECT_BRANCH_SANITIZED=$(echo "$PROJECT_BRANCH" | sed -r 's/[\/_]+/-/g')
PROJECT_BRANCH_SANITIZED=$(echo "$PROJECT_BRANCH" | tr [:upper:] [:lower:] | sed -r 's/[\/_]+/-/g')
echo "PROJECT_NAME=${PROJECT_NAME}" >>.env
echo "PROJECT_BRANCH=${PROJECT_BRANCH}" >>.env
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment