From 34304e79fcdcdba74e6a85a808752d80e16645f7 Mon Sep 17 00:00:00 2001 From: PP Date: Tue, 20 Jul 2021 14:44:40 +0800 Subject: [PATCH] add time for fetch RAL workflow (#9014) * add time for fetch RAL workflow * update --- scripts/fetch-ral.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/fetch-ral.js b/scripts/fetch-ral.js index fc2a1ee15d..5e4d005d2c 100644 --- a/scripts/fetch-ral.js +++ b/scripts/fetch-ral.js @@ -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);