From a603c5d2026e505ab1d8efd04944220b5db63fce Mon Sep 17 00:00:00 2001 From: Moritz Utcke Date: Tue, 29 Apr 2025 14:16:02 -0300 Subject: [PATCH] Update prevent-wrong-pr.yml --- .github/workflows/prevent-wrong-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/prevent-wrong-pr.yml b/.github/workflows/prevent-wrong-pr.yml index c2073db3..1cbfebf3 100644 --- a/.github/workflows/prevent-wrong-pr.yml +++ b/.github/workflows/prevent-wrong-pr.yml @@ -13,7 +13,7 @@ jobs: steps: - name: Prevent dev merges run: | - if [[ "${{ github.head_ref }}" == "dev" ]]; then + if [[ "${{ github.head_ref }}" == "dev" && "${{ github.base_ref }}" == "main" ]]; then echo "ERROR: Merging 'dev' into '${{ github.base_ref }}' is forbidden!" exit 1 fi