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