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 d6ab418..0875ecf 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,11 +6,11 @@ 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