diff --git a/.github/workflows/test_scraper.yml b/.github/workflows/test_scraper.yml index 23ee9a6..80b78f3 100644 --- a/.github/workflows/test_scraper.yml +++ b/.github/workflows/test_scraper.yml @@ -37,25 +37,11 @@ jobs: run: | sudo apt-get update sudo apt-get install -y google-chrome-stable - - name: Install ChromeDriver run: | - # Get the major version of the installed Chrome - CHROME_VERSION=$(google-chrome --version | grep -oP '\d+\.\d+' | head -1) - echo "Installed Chrome major version is $CHROME_VERSION" - - # Find the closest ChromeDriver version available for this major version - CHROMEDRIVER_VERSION=$(curl -sS "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_VERSION" || echo "") - - if [ -z "$CHROMEDRIVER_VERSION" ]; then - echo "No matching ChromeDriver version found for Chrome $CHROME_VERSION." - exit 1 - fi - - echo "Installing ChromeDriver version $CHROMEDRIVER_VERSION" - curl -Lo /tmp/chromedriver.zip "https://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip" - sudo apt-get install -y unzip - sudo unzip /tmp/chromedriver.zip -d /usr/local/bin/ + wget https://chromedriver.storage.googleapis.com/94.0.4606.61/chromedriver_linux64.zip + unzip chromedriver_linux64.zip + sudo mv chromedriver /usr/local/bin/ sudo chmod +x /usr/local/bin/chromedriver - name: Run Scraper