Skip to content
Snippets Groups Projects
Commit 554a2786 authored by Ishwari Niphade's avatar Ishwari Niphade
Browse files

Synced updated .gitlab-ci.yml from main

parent 9ac9180a
No related branches found
No related tags found
1 merge request!9Classification/preprocessing/ishwari-modelspecific
Pipeline #104276 passed
......@@ -5,14 +5,16 @@ check_branch_name:
stage: validate
script: |
echo "🔍 Validating branch name: $CI_COMMIT_REF_NAME"
BRANCH_REGEX="^(regression|classification|clustering|ilp-classification|rl)/(svm|tree|mlp|perceptron|nb|bayes|kmeans|hierarchical|aleph|pygol|ql|dql|preprocessing)/(ritwik|arpit|shivasmi|ishwari|suraj)$"
# Allowed format: <task>/<model-or-preprocessing>/<author>[-optional-suffix]
BRANCH_REGEX="^(regression|classification|clustering|ilp-classification|rl)/(svm|tree|mlp|perceptron|nb|bayes|kmeans|hierarchical|aleph|pygol|ql|dql|preprocessing)/(ritwik|arpit|shivasmi|ishwari|suraj)(-[a-z0-9]+)?$"
if [[ "$CI_COMMIT_REF_NAME" =~ $BRANCH_REGEX ]]; then
echo "✅ Branch name is valid."
else
echo "❌ Branch name is INVALID: '$CI_COMMIT_REF_NAME'"
echo "👉 Expected format: <task>/<model-or-preprocessing>/<author>"
echo "👉 Example: classification/svm/ritwik"
echo "👉 Expected format: <task>/<model-or-preprocessing>/<author>[-optional-suffix]"
echo "👉 Example: classification/svm/ritwik or classification/preprocessing/ritwik-fix"
exit 1
fi
only:
......@@ -20,4 +22,5 @@ check_branch_name:
except:
- main
tags:
- pages
\ No newline at end of file
- pages
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