diff --git a/packages/github/README.md b/packages/github/README.md index 02e9be077d..5b9c8c1e40 100644 --- a/packages/github/README.md +++ b/packages/github/README.md @@ -69,8 +69,8 @@ import * as core from '@actions/core' import * as github from '@actions/github' import * as Webhooks from '@octokit/webhooks' if (github.context.eventName === 'push') { - const pushPayload = github.context.payload as Webhooks.WebhookPayloadPush - core.info(`The head commit is: ${pushPayload.head}`) + const pushPayload = github.context.payload as Webhooks.EventPayloads.WebhookPayloadPush + core.info(`The head commit is: ${pushPayload.after}`) } ```