From 2aeff5fd177879a3499eb710112e3b87f5188763 Mon Sep 17 00:00:00 2001 From: Remko Date: Fri, 1 May 2026 11:54:28 +0200 Subject: [PATCH] Removed loophole and made sure that the workflows look at main --- .github/workflows/branch-protection-check.yml | 2 +- .github/workflows/branch-protection.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/branch-protection-check.yml b/.github/workflows/branch-protection-check.yml index ac7cf8f8..bba4707b 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/ ]]; then echo "::error::Pull requests to main must come from 'beta', a 'hotfix/*' branch, or a 'docs/*' branch." echo "" echo "Allowed patterns:" diff --git a/.github/workflows/branch-protection.yml b/.github/workflows/branch-protection.yml index 201b57a3..acb2c288 100644 --- a/.github/workflows/branch-protection.yml +++ b/.github/workflows/branch-protection.yml @@ -10,5 +10,5 @@ permissions: jobs: branch-protection: - uses: ConductionNL/woo-website-template/.github/workflows/branch-protection-check.yml@update-workflow + uses: ConductionNL/woo-website-template/.github/workflows/branch-protection-check.yml@main secrets: inherit