From b060a7d6f88e27195247b63795fcb7d386a464d1 Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Tue, 19 Sep 2023 13:30:00 +0100 Subject: [PATCH] Fix pull request checking condition --- .github/workflows/ack.yml | 4 ++-- .gitignore | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ack.yml b/.github/workflows/ack.yml index 10b9906..64386f6 100644 --- a/.github/workflows/ack.yml +++ b/.github/workflows/ack.yml @@ -27,7 +27,7 @@ jobs: # either title, body or source branch name. We ignore potential failure # of this step. - uses: release-drafter/release-drafter@v5 - if: ${{ github.event.issue.pull_request }} + if: ${{ github.event_name == 'pull_request' }} with: # we only want to use the auto-labeler bits: disable-autolabeler: false @@ -40,7 +40,7 @@ jobs: # Ensure that one of the required labels is present and none of the undesired is absent # See https://github.com/jesusvasquez333/verify-pr-label-action - name: Verify PR label action - if: ${{ github.event.issue.pull_request }} + if: ${{ github.event_name == 'pull_request' }} uses: jesusvasquez333/verify-pr-label-action@v1.4.0 with: github-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.gitignore b/.gitignore index 99efc91..6cac982 100644 --- a/.gitignore +++ b/.gitignore @@ -128,3 +128,4 @@ dmypy.json # Pyre type checker .pyre/ .DS_Store +.envrc