Skip to content

Commit df5d412

Browse files
Szotkowskisnyk-botdependabot[bot]
authored
Dev (#271)
# Pull Request ## Description Please describe what this PR does and why. ## Related Issues Closes #<issue-number> ## Checklist - [ ] Tests added - [ ] Docs updated - [ ] Follows contribution guidelines Thank you for contributing to **Selecro**! 🧶 --------- Signed-off-by: Michael Szotkowski <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: snyk-bot <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 997d41f commit df5d412

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/branch-name-check.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ jobs:
2020
exit 0
2121
fi
2222
23-
if [[ ! "$GITHUB_HEAD_REF" =~ ^(feature|fix|dependabot)/[a-z0-9._-]+$ ]]; then
24-
echo "❌ Invalid branch name. Use 'feature/*', 'fix/*', or 'dependabot/*'."
23+
if [[ ! "$GITHUB_HEAD_REF" =~ ^(feature|fix)/[a-z0-9._-]+$ \
24+
&& ! "$GITHUB_HEAD_REF" =~ ^dependabot/.+$ \
25+
&& ! "$GITHUB_HEAD_REF" =~ ^snyk-upgrade-[a-z0-9]+$ ]]; then
26+
echo "❌ Invalid branch name. Use 'feature/*', 'fix/*', 'dependabot/*', or 'snyk-upgrade-*'."
2527
exit 1
2628
fi
2729

0 commit comments

Comments
 (0)