Skip to content

Commit

Permalink
Update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
emcfarlane committed Aug 6, 2024
1 parent 0c39d22 commit 69a7b9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45829,8 +45829,7 @@ async function runWorkflow(bufPath, inputs, moduleNames) {
steps.build = await build(bufPath, inputs);
if (steps.build.status == Status.Failed) {
if (steps.build.stderr.match(/had no .proto files/)) {
core.info("Empty repository detected, ensure the repository is checked out");
return steps;
core.info('Did you forget to add the "actions/checkout@v4" checkout step to your workflow?');
}
return steps;
}
Expand Down
3 changes: 1 addition & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,8 @@ async function runWorkflow(
if (steps.build.status == Status.Failed) {
if (steps.build.stderr.match(/had no .proto files/)) {
core.info(
"Empty repository detected, ensure the repository is checked out",
'Did you forget to add the "actions/checkout@v4" checkout step to your workflow?',
);
return steps;
}
return steps;
}
Expand Down

0 comments on commit 69a7b9d

Please sign in to comment.