Skip to content

Commit d055200

Browse files
committed
Another fix
1 parent ec8d3c9 commit d055200

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/library.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,13 @@ function setup() {
5555
core.info(`GitHub context: ${JSON.stringify(githubContext)}`);
5656
const server_url = github.context.serverUrl;
5757
const workflow_run_id = github.context.runId;
58-
const owner = github.context.repo.owner;
59-
const repo = github.context.repo.repo;
58+
// const owner = github.context.repo.owner;
59+
// const repo = github.context.repo.repo;
60+
const { owner, repo } = github.context.repo;
61+
62+
if (!owner || !repo) {
63+
core.setFailed('Could not determine owner and repo from GitHub context.');
64+
}
6065

6166
return new context(
6267
workflow_actor,

0 commit comments

Comments
 (0)