From 4f23faf0ddb8211a6f26f0e30fbb853aef69ef8a Mon Sep 17 00:00:00 2001 From: vagusX Date: Sun, 7 Apr 2024 16:26:07 +0800 Subject: [PATCH] scripts(visual-regression): prepare files before upload (#48316) --- .github/workflows/visual-regression-persist-finish.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/visual-regression-persist-finish.yml b/.github/workflows/visual-regression-persist-finish.yml index ba5d8254f6..8ec809dd94 100644 --- a/.github/workflows/visual-regression-persist-finish.yml +++ b/.github/workflows/visual-regression-persist-finish.yml @@ -98,8 +98,12 @@ jobs: npm i ali-oss --no-save echo "✅ Install `ali-oss` Finished" + echo "🔍 Preparing" + mv ./tmp/imageSnapshots.tar.gz ./imageSnapshots.tar.gz + mv ./tmp/visual-regression-ref.txt ./visual-regression-ref.txt + echo "🤖 Uploading" - node scripts/visual-regression/upload.js ./tmp/imageSnapshots.tar.gz --ref=$HEAD_SHA - node scripts/visual-regression/upload.js ./tmp/visual-regression-ref.txt --ref=$HEAD_BRANCH + node scripts/visual-regression/upload.js ./imageSnapshots.tar.gz --ref=$HEAD_SHA + node scripts/visual-regression/upload.js ./visual-regression-ref.txt --ref=$HEAD_BRANCH echo "✅ Uploaded"