ci: fix type check for manual trigger 2 (#28702)

This commit is contained in:
David Arnold 2024-12-08 01:36:14 +01:00 committed by GitHub
parent 0fbac0927b
commit 8c7f3fac6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,