diff --git a/.github/workflows/_base-type-check.yml b/.github/workflows/_base-type-check.yml index e5970d1c06..a67abf839d 100644 --- a/.github/workflows/_base-type-check.yml +++ b/.github/workflows/_base-type-check.yml @@ -19,7 +19,7 @@ jobs: with: github-token: ${{secrets.GITHUB_TOKEN}} script: | - const ref = context.payload.pull_request ? context.payload.pull_request.head.sha : github.context.sha; + const ref = context.payload.pull_request ? context.payload.pull_request.head.sha : context.sha; const { data: pyprojectContent } = await github.rest.repos.getContent({ owner: context.repo.owner, repo: context.repo.repo,