Skip to content

Commit

Permalink
fix: support local Inter.zip for playwright (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
prescottprue authored Jun 10, 2024
1 parent 6e045eb commit ec05695
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/actions/playwright/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit ec05695

Please sign in to comment.