optimise github actions
This commit is contained in:
@@ -26,13 +26,13 @@ function checkPathLength(dir) {
|
||||
if (filePath.length > MAX_PATH_LENGTH) {
|
||||
|
||||
if (IS_CI) {
|
||||
process.exitCode = 1;
|
||||
//process.exitCode = 1; // TODO: Uncomment this line to fail the build
|
||||
}
|
||||
|
||||
if (IS_AZURE_PIPELINES) {
|
||||
console.error(`##vso[task.logissue type=warning;]Path exceeds maximum length of ${MAX_PATH_LENGTH} characters: ${filePath} with ${filePath.length} characters`);
|
||||
} else if (IS_GITHUB_ACTIONS) {
|
||||
console.error(`::warning file=${filePath},title=Path exceeds ${MAX_PATH_LENGTH}::Paths should not be longer than ${MAX_PATH_LENGTH} characters to support WIN32 systems. This file exceeds that with ${MAX_PATH_LENGTH - filePath.length} characters.`);
|
||||
console.error(`::warning file=${filePath},title=Path exceeds ${MAX_PATH_LENGTH}::Paths should not be longer than ${MAX_PATH_LENGTH} characters to support WIN32 systems. The file ${filePath} exceeds that with ${filePath.length - MAX_PATH_LENGTH} characters.`);
|
||||
} else {
|
||||
console.error(`Path exceeds maximum length of ${MAX_PATH_LENGTH} characters: ${FILE_PATH_COLOR}`, filePath, filePath.length);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user