mirror of
https://github.com/dorny/paths-filter.git
synced 2026-03-24 04:30:24 +00:00
Apply suggestion from @masaru-iritani
Co-authored-by: Masaru Iritani <25241373+masaru-iritani@users.noreply.github.com>
This commit is contained in:
parent
baba405537
commit
9cca65527a
@ -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)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user