Commit 82e37fdc authored by mrodzis's avatar mrodzis 🌿
Browse files

ci: check if we are on feature branch

parent 846d6bb2
Pipeline #201230 passed with stages
in 3 minutes and 51 seconds
......@@ -14,7 +14,7 @@ unzip -u old-artifact.zip
echo "test"
if [[ $CONTINUE_BUILD == "true" ]]; then
if [[ $CONTINUE_BUILD == "true" || ($CI_COMMIT_BRANCH != "main" && $CI_COMMIT_BRANCH != "develop") ]]; then
echo "CONTINUE_BUILD is set to 'true'."
mkdir -p public/{${CI_COMMIT_SHORT_SHA},${CI_COMMIT_REF_SLUG}}
echo public/${CI_COMMIT_SHORT_SHA} public/${CI_COMMIT_REF_SLUG} | xargs -n 1 cp --remove-destination --recursive ${dist_dir}/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment