diff --git a/.github/workflows/branch-protection-check.yml b/.github/workflows/branch-protection-check.yml index 70c006d9..ac7cf8f8 100644 --- a/.github/workflows/branch-protection-check.yml +++ b/.github/workflows/branch-protection-check.yml @@ -15,7 +15,7 @@ jobs: echo "PR: $SOURCE → $TARGET" if [[ "$TARGET" == "main" || "$TARGET" == "master" ]]; then - if [[ "$SOURCE" != "beta" ]] && ! [[ "$SOURCE" =~ ^hotfix ]] && ! [[ "$SOURCE" =~ ^docs/ ]] && ! [[ "$SOURCE" != "Rem-Dam-patch-6" ]]; then + if [[ "$SOURCE" != "beta" ]] && ! [[ "$SOURCE" =~ ^hotfix ]] && ! [[ "$SOURCE" =~ ^docs/ ]] && [[ "$SOURCE" != "Rem-Dam-patch-6" ]]; then echo "::error::Pull requests to main must come from 'beta', a 'hotfix/*' branch, or a 'docs/*' branch." echo "" echo "Allowed patterns:"