From c8acc5b9d8d41a704e2a270bd75686b6962b8b17 Mon Sep 17 00:00:00 2001 From: Thomas Ubensee <34603111+tomuben@users.noreply.github.com> Date: Thu, 21 Nov 2024 17:38:25 -0300 Subject: [PATCH] Fixed pr validation job --- .github/workflows/validate_pr.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/validate_pr.yaml b/.github/workflows/validate_pr.yaml index 03fcd43a..fac3e6ec 100644 --- a/.github/workflows/validate_pr.yaml +++ b/.github/workflows/validate_pr.yaml @@ -8,5 +8,5 @@ jobs: runs-on: ubuntu-24.04 steps: - name: Check master - if: ${{github.base_ref == 'master' && github.ref_name != 'develop'}} - run: echo You must not merge directly to master. Instead merge to 'develop' first. && exit 1 + if: ${{github.base_ref == 'master' && github.head_ref != 'develop'}} + run: Target=${{github.base_ref}} Source=${{github.head_ref}}. echo You must not merge directly to master. Instead merge to 'develop' first. && exit 1