We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4573f25 commit 57bd647Copy full SHA for 57bd647
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)(-[0-9]+)?$ ]]; then
+ if [[ $branch_lower == *backup* || $branch_lower =~ ^(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