Skip to content

Commit

Permalink
resolving Chrome version issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hiitsmocha committed Nov 11, 2024
1 parent 3262f94 commit 70b4457
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/test_scraper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,11 @@ jobs:
- name: Install ChromeDriver
run: |
CHROME_VERSION=$(google-chrome --version | grep -oP '\d+\.\d+\.\d+')
echo "Chrome version is $CHROME_VERSION"
CHROMEDRIVER_VERSION=$(curl -sS https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_VERSION)
echo "Matching ChromeDriver version is $CHROMEDRIVER_VERSION"
curl -Lo /usr/local/bin/chromedriver "https://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip"
CHROME_DRIVER_VERSION="115.0.5790.170"
echo "Installing ChromeDriver version $CHROME_DRIVER_VERSION"
curl -Lo /tmp/chromedriver.zip "https://chromedriver.storage.googleapis.com/$CHROME_DRIVER_VERSION/chromedriver_linux64.zip"
sudo apt-get install -y unzip
sudo unzip /usr/local/bin/chromedriver -d /usr/local/bin/
sudo unzip /tmp/chromedriver.zip -d /usr/local/bin/
sudo chmod +x /usr/local/bin/chromedriver
- name: Run Scraper
Expand Down

0 comments on commit 70b4457

Please sign in to comment.