From 042bad25e0ee24479ad3b6ec0b35912b3b1241b4 Mon Sep 17 00:00:00 2001 From: Moritz Utcke Date: Wed, 11 Jun 2025 13:42:46 -0500 Subject: [PATCH] Remove old check --- .github/workflows/prevent-wrong-pr.yml | 27 -------------------------- 1 file changed, 27 deletions(-) delete mode 100644 .github/workflows/prevent-wrong-pr.yml diff --git a/.github/workflows/prevent-wrong-pr.yml b/.github/workflows/prevent-wrong-pr.yml deleted file mode 100644 index 1cbfebf3..00000000 --- a/.github/workflows/prevent-wrong-pr.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: PR Rules Enforcement - -on: - pull_request: - branches: - - main - - staging - -jobs: - check-pr: - runs-on: ubuntu-latest - name: Validate Pull Request Sources - steps: - - name: Prevent dev merges - run: | - if [[ "${{ github.head_ref }}" == "dev" && "${{ github.base_ref }}" == "main" ]]; then - echo "ERROR: Merging 'dev' into '${{ github.base_ref }}' is forbidden!" - exit 1 - fi - - - name: Allow only staging into main - if: github.base_ref == 'main' - run: | - if [[ "${{ github.head_ref }}" != "staging" ]]; then - echo "ERROR: Only 'staging' branch is allowed to merge into 'main'. Current: '${{ github.head_ref }}'" - exit 1 - fi