From 2e1bc1ad45c4df7c2c39c11f6afec0e8264608cd Mon Sep 17 00:00:00 2001 From: Remko Date: Fri, 1 May 2026 11:44:00 +0200 Subject: [PATCH] Updated loophole --- .github/workflows/branch-protection-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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:"