From 6e8b50717ca000594763a2261f9af443a319ce24 Mon Sep 17 00:00:00 2001 From: Dorian Date: Wed, 29 Nov 2023 17:25:25 +0100 Subject: [PATCH] Change to head ref --- .../only-allow-pull-requests-to-master-from-develop.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/only-allow-pull-requests-to-master-from-develop.yml b/.github/workflows/only-allow-pull-requests-to-master-from-develop.yml index 3a56937..3f5d65f 100644 --- a/.github/workflows/only-allow-pull-requests-to-master-from-develop.yml +++ b/.github/workflows/only-allow-pull-requests-to-master-from-develop.yml @@ -6,12 +6,12 @@ on: jobs: bump-version: - if: ${{ github.base_ref }} == "refs/heads/develop" + if: ${{ github.head_ref }} == "refs/heads/develop" name: Is pull request from develop runs-on: ubuntu-latest #self-hosted steps: - name: Fail because the pull request is not from develop - run: echo pull requests from ${{github.base_ref}} are not allowed && exit 1 + run: echo pull requests from ${{github.head_ref}} are not allowed && exit 1