mirror of
https://github.com/github/codeql-action
synced 2026-05-29 05:00:55 +03:00
Stop the upload action early if no files will be uploaded.
This commit is contained in:
Generated
+1
@@ -63,6 +63,7 @@ async function upload(input) {
|
||||
.map(f => path.resolve(input, f));
|
||||
if (sarifFiles.length === 0) {
|
||||
core.setFailed("No SARIF files found to upload in \"" + input + "\".");
|
||||
return;
|
||||
}
|
||||
await uploadFiles(sarifFiles);
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user