Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

fix(ci): use context.payload.after for push event SHA in roadmap-notify

EtienneLescot506f7c0de8bf
diff --git a/.github/workflows/discord.yaml b/.github/workflows/discord.yaml
index 11cf6857b..f0d1bd394 100644
--- a/.github/workflows/discord.yaml
+++ b/.github/workflows/discord.yaml
@@ -594,7 +594,7 @@ jobs:
});
changedFiles = res.data;
} else if (context.eventName === "push") {
- const sha = github.event.head_commit?.id || github.sha;
+ const sha = context.payload.after || context.payload.head_commit?.id || context.sha;
const res = await github.rest.repos.getCommit({
owner: context.repo.owner,
repo: context.repo.repo,