|
@@ -21,19 +21,17 @@ const downloadPreviousBuild = task(__filename, async () => {
|
|
|
|
|
|
|
|
let allFileExists = true;
|
|
let allFileExists = true;
|
|
|
|
|
|
|
|
- if (isCI) {
|
|
|
|
|
- allFileExists = false;
|
|
|
|
|
- } else {
|
|
|
|
|
- for await (const line of readFileByLine(resolve(__dirname, '../.gitignore'))) {
|
|
|
|
|
- if (
|
|
|
|
|
- (
|
|
|
|
|
|
|
+ for await (const line of readFileByLine(resolve(__dirname, '../.gitignore'))) {
|
|
|
|
|
+ if (
|
|
|
|
|
+ (
|
|
|
// line.startsWith('List/')
|
|
// line.startsWith('List/')
|
|
|
- line.startsWith('Modules/')
|
|
|
|
|
- ) && !line.endsWith('/')
|
|
|
|
|
- ) {
|
|
|
|
|
- allFileExists = fs.existsSync(join(__dirname, '..', line));
|
|
|
|
|
- filesList.push(line);
|
|
|
|
|
|
|
+ line.startsWith('Modules/')
|
|
|
|
|
+ ) && !line.endsWith('/')
|
|
|
|
|
+ ) {
|
|
|
|
|
+ filesList.push(line);
|
|
|
|
|
|
|
|
|
|
+ if (!isCI) {
|
|
|
|
|
+ allFileExists = fs.existsSync(join(__dirname, '..', line));
|
|
|
if (!allFileExists) {
|
|
if (!allFileExists) {
|
|
|
console.log(`File not exists: ${line}`);
|
|
console.log(`File not exists: ${line}`);
|
|
|
break;
|
|
break;
|
|
@@ -42,6 +40,10 @@ const downloadPreviousBuild = task(__filename, async () => {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if (isCI) {
|
|
|
|
|
+ allFileExists = false;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if (allFileExists) {
|
|
if (allFileExists) {
|
|
|
console.log('All files exists, skip download.');
|
|
console.log('All files exists, skip download.');
|
|
|
return;
|
|
return;
|