add time for fetch RAL workflow (#9014)

* add time for fetch RAL workflow

* update
This commit is contained in:
PP
2021-07-20 14:44:40 +08:00
committed by GitHub
parent 5610f118a6
commit 34304e79fc
+3
View File
@@ -137,8 +137,10 @@ async function removeDir (dirPath) {
(async () => {
try {
console.time('Fetch RAL');
if (checkFile() && matchCommit()) {
console.log('Skip fetching ral!\n');
console.timeEnd('Fetch RAL');
process.exit(0);
}
await cleanOldRal();
@@ -151,6 +153,7 @@ async function removeDir (dirPath) {
copyRal();
writeLocalCommitFile();
await removeDir(repositoryPath);
console.timeEnd('Fetch RAL');
process.exit(0);
} catch (err) {
console.error('Fetch ral failed', err);