Skip to content

Commit

Permalink
Stop the upload action early if no files will be uploaded.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Gavin committed May 1, 2020
1 parent b6a0306 commit 4e9886a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/upload-lib.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/upload-lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export async function upload(input: string) {
.map(f => path.resolve(input, f));
if (sarifFiles.length === 0) {
core.setFailed("No SARIF files found to upload in \"" + input + "\".");
return;
}
await uploadFiles(sarifFiles);
} else {
Expand Down

0 comments on commit 4e9886a

Please sign in to comment.