Skip to content

Commit b2988fd

Browse files
committed
Fix benchmark failing outside of pull requests
1 parent 6131fa6 commit b2988fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ jobs:
117117
const text = `### Lua5.3\n${benchmarkInfoLua.text}\n### LuaJIT\n${benchmarkInfoJIT.text}`;
118118
119119
const pull_request = context.payload.pull_request;
120-
if (pull_request.head.repo.url === pull_request.base.repo.url) {
120+
if (!pull_request || pull_request.head.repo.url === pull_request.base.repo.url) {
121121
// This only works if not in a fork.
122122
github.checks.create({
123123
owner: context.repo.owner,

0 commit comments

Comments
 (0)