Skip to content

Commit 90602ec

Browse files
committed
fix(pdf): install chrome manually
1 parent f2406e5 commit 90602ec

1 file changed

Lines changed: 24 additions & 5 deletions

File tree

.github/workflows/documentation.yaml

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,37 @@ jobs:
3333

3434
- name: install chrome dependencies
3535
run: |
36-
apt install -y ca-certificates fonts-liberation libappindicator3-1 libasound2 libatk-bridge2.0-0 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 lsb-release wget xdg-utils
36+
apt install -y ca-certificates fonts-liberation libappindicator3-1 libasound2 libatk-bridge2.0-0 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 lsb-release wget xdg-utils unzip gnupg2
37+
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
38+
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list
39+
apt update
40+
apt install -y google-chrome-stable
3741
alias google-chrome=google-chrome-stable
38-
# wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
42+
alias chrome=google-chrome-stable
43+
alias chromium=google-chrome-stable
44+
alias chromium-browser=google-chrome-stable
45+
alias chrome-browser=google-chrome-stable
46+
CHROMEAPP=google-chrome-stable
47+
echo $CHROMEAPP
48+
CHROME_VERSION=$("$CHROMEAPP" --version | cut -f 3 -d ' ' | cut -d '.' -f 1)
49+
echo $CHROME_VERSION
50+
VERSION=$(curl --location --fail --retry 10 http://chromedriver.storage.googleapis.com/LATEST_RELEASE)
51+
echo $VERSION
52+
wget -c -nc --retry-connrefused --tries=0 https://chromedriver.storage.googleapis.com/${VERSION}/chromedriver_linux64.zip
53+
unzip -o -q chromedriver_linux64.zip
54+
mv chromedriver /usr/local/bin/chromedriver
55+
rm chromedriver_linux64.zip
56+
57+
# wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
3958
# sudo apt install ./google-chrome-stable_current_amd64.deb
4059
# alias chrome="/usr/bin/google-chrome-stable"
4160
# alias chromium="/usr/bin/google-chrome-stable"
4261
# alias chromium-browser="/usr/bin/google-chrome-stable"
4362
# alias google-chrome="/usr/bin/google-chrome-stable"
4463

45-
# - uses: browser-actions/setup-chrome@v1
46-
# with:
47-
# version: 'latest'
64+
- uses: browser-actions/setup-chrome@v1
65+
with:
66+
version: 'latest'
4867

4968
- uses: nanasess/setup-chromedriver@v2
5069

0 commit comments

Comments
 (0)