Skip to content

Commit 6e8db44

Browse files
committed
Install chrome and scrape with xvfb-run
1 parent ec692e5 commit 6e8db44

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/daily-update.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,14 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616

17-
- name: Install Chromium
18-
run: sudo apt-get install -y chromium-browser
17+
- name: Install Chrome
18+
run: |
19+
sudo apt-get update
20+
sudo apt-get install -y wget gnupg
21+
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
22+
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
23+
sudo apt-get update
24+
sudo apt-get install -y google-chrome-stable
1925
2026
- name: Checkout
2127
uses: actions/checkout@v4
@@ -43,7 +49,10 @@ jobs:
4349
run: make build
4450

4551
- name: Scrape Astra
46-
run: ./api-tools -scrape -astra
52+
env:
53+
CHROME_BIN: /usr/bin/google-chrome
54+
run: |
55+
xvfb-run --auto-servernum ./api-tools -scrape -astra
4756
4857
# - name: Parse Astra
4958
# run: ./api-tools -parse -astra

0 commit comments

Comments
 (0)