We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c6a1c6 commit 4573f25Copy full SHA for 4573f25
1 file changed
.github/workflows/branch-deletion-pr-creation.yml
@@ -54,7 +54,7 @@ jobs:
54
55
for BRANCH in $ALL_BRANCHES; do
56
branch_lower=$(echo "$BRANCH" | tr '[:upper:]' '[:lower:]')
57
- if [[ $branch_lower =~ (backup|development|main|master|production) ]]; then
+ if [[ $branch_lower =~ ^(backup|development|main|master|production)(-[0-9]+)?$ ]]; then
58
PROTECTED_BRANCHES+=("$BRANCH (protected)")
59
elif git branch -r --merged origin/development | grep -q "origin/$BRANCH"; then
60
MERGED_BRANCHES_TO_PROCESS+=("$BRANCH")
0 commit comments