From e1a5a1f811f82cb9d547f42bf89a522b5f87812c Mon Sep 17 00:00:00 2001 From: Athanasius <github@miggy.org> Date: Fri, 31 Jul 2020 12:51:07 +0100 Subject: [PATCH] Top-level event key needs to be pull_request --- .github/workflows/pr-checks.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index 1a3d672e..01decfc1 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -20,7 +20,8 @@ jobs: #################################################################### steps: - name: Show github context - run: cat $GITHUB_EVENT_PATH + run: | + cat $GITHUB_EVENT_PATH #################################################################### #################################################################### @@ -32,7 +33,7 @@ jobs: # https://github.com/actions/checkout uses: actions/checkout@v2 with: - repository: ${{github.event.head.repo.full_name}} + repository: ${{github.event.pull_request.head.repo.full_name}} fetch-depth: 0 #################################################################### @@ -55,7 +56,7 @@ jobs: #################################################################### - name: Lint with flake8 env: - BASE_REPO: ${{github.event.base.repo.full_name}} + BASE_REPO: ${{github.event.pull_request.base.repo.full_name}} BASE_REF: ${{github.base_ref}} run: |