From ec056953d1d9fd26ffa304bc2b82002e11985be1 Mon Sep 17 00:00:00 2001 From: Scott Prue Date: Mon, 10 Jun 2024 11:10:22 -0600 Subject: [PATCH] fix: support local Inter.zip for playwright (#55) --- .github/actions/playwright/action.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/actions/playwright/action.yml b/.github/actions/playwright/action.yml index e1efd98..070b4c4 100644 --- a/.github/actions/playwright/action.yml +++ b/.github/actions/playwright/action.yml @@ -19,8 +19,14 @@ runs: # NOTE: Invalid zip file was being downloaded through wget -O Inter.zip https://fonts.google.com/download?family=Inter # so the file was downloaded and uploaded to side-plat-tools-public bucket run: | - wget -O Inter.zip https://storage.googleapis.com/side-plat-tools-public/playwright-fonts/Inter.zip - echo "::debug::Inter Zip file downloaded, unzipping" + if [ -f Inter.zip ]; then + echo "::debug::Inter Zip found in repo" + else + echo "::debug::Inter Zip file not found in repo, downloading" + wget -O Inter.zip https://storage.googleapis.com/side-plat-tools-public/playwright-fonts/Inter.zip + echo "::debug::Inter Zip file downloaded" + fi + echo "::debug::Unzipping Inter.zip" unzip -d Inter/ Inter.zip echo "::debug::Inter font file unzipped, moving" mv Inter /usr/share/fonts/