diff --git a/.github/workflows/fetch_sha.yml b/.github/workflows/fetch_sha.yml index 272d233..d1775f1 100644 --- a/.github/workflows/fetch_sha.yml +++ b/.github/workflows/fetch_sha.yml @@ -29,7 +29,7 @@ jobs: with: result-encoding: string script: | - if (!((context.eventName == "issue_comment") || (context.eventName == "pull_request"))) { + if (!((context.payload.issue) || (context.payload.pull_request))) { return context.sha; }; const { data: pr } = await github.rest.pulls.get({