We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec8d3c9 commit d055200Copy full SHA for d055200
src/library.js
@@ -55,8 +55,13 @@ function setup() {
55
core.info(`GitHub context: ${JSON.stringify(githubContext)}`);
56
const server_url = github.context.serverUrl;
57
const workflow_run_id = github.context.runId;
58
- const owner = github.context.repo.owner;
59
- const repo = github.context.repo.repo;
+ // const owner = github.context.repo.owner;
+ // 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
+ }
65
66
return new context(
67
workflow_actor,
0 commit comments