scripts(visual-regression): prepare files before upload (#48316)

This commit is contained in:
vagusX 2024-04-07 16:26:07 +08:00 committed by GitHub
parent 52df99f9bf
commit 4f23faf0dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"