Skip to content

Commit 4e9886a

Browse files
committed
Stop the upload action early if no files will be uploaded.
1 parent b6a0306 commit 4e9886a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/upload-lib.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/upload-lib.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export async function upload(input: string) {
5656
.map(f => path.resolve(input, f));
5757
if (sarifFiles.length === 0) {
5858
core.setFailed("No SARIF files found to upload in \"" + input + "\".");
59+
return;
5960
}
6061
await uploadFiles(sarifFiles);
6162
} else {

0 commit comments

Comments
 (0)