Skip to content

Commit ffa81ec

Browse files
committed
parse payload, not commits
1 parent 71b979d commit ffa81ec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/action.global.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function validateContextAndGetPayload() {
1616
throw 'This action can only be used on push events.'
1717
}
1818

19-
const payloadParsed = PushPayload.safeParse(github.context.payload.commits)
19+
const payloadParsed = PushPayload.safeParse(github.context.payload)
2020
if (!payloadParsed.success) {
2121
throw payloadParsed.error
2222
}

0 commit comments

Comments
 (0)