From 70b4457c0dc9e693ebc7e725feab8f98b6f0b37c Mon Sep 17 00:00:00 2001 From: hiitsmocha Date: Mon, 11 Nov 2024 17:42:13 -0600 Subject: [PATCH] resolving Chrome version issue --- .github/workflows/test_scraper.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test_scraper.yml b/.github/workflows/test_scraper.yml index 6a2ebed..ae11310 100644 --- a/.github/workflows/test_scraper.yml +++ b/.github/workflows/test_scraper.yml @@ -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