diff --git a/src/main.ts b/src/main.ts index 44f311c..463e7f1 100644 --- a/src/main.ts +++ b/src/main.ts @@ -97,7 +97,7 @@ async function getChangedFiles(token: string, base: string, ref: string, initial if (base) { core.warning(`'base' input parameter is ignored when action is triggered by pull request event`) } - const pr = github.context.payload.pull_request as PullRequestEvent + const pr = github.context.payload as PullRequestEvent if (token) { return await getChangedFilesFromApi(token, pr) }