Skip to content

Commit

Permalink
Update create-report.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriziosalmi authored Sep 6, 2024
1 parent b9add4f commit f12a5ca
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/create-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,23 @@ jobs:
run: |
pip install requests python-whois dnspython beautifulsoup4 selenium
- name: Set up Chrome
uses: browser-actions/setup-chrome@v1
with:
chrome-version: 'stable' # or specify a particular version if needed
- name: Install Chrome
run: |
sudo apt-get update
sudo apt-get install -y google-chrome-stable
- name: Set up Chromedriver
uses: nanasess/setup-chromedriver@v1
with:
chromedriver-version: 'latest' # or specify a particular version if needed
- name: Install Chromedriver
run: |
# Get the installed Chrome version
CHROME_VERSION=$(google-chrome --version | grep -oP '\d+\.\d+\.\d+')
# Find the latest compatible Chromedriver version
DRIVER_VERSION=$(curl -s "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROME_VERSION%.*}")
# Download and install Chromedriver
curl -O "https://chromedriver.storage.googleapis.com/${DRIVER_VERSION}/chromedriver_linux64.zip"
unzip chromedriver_linux64.zip -d ~/ && rm chromedriver_linux64.zip
sudo mv -f ~/chromedriver /usr/local/bin/chromedriver
sudo chown root:root /usr/local/bin/chromedriver
sudo chmod 0755 /usr/local/bin/chromedriver
- name: Verify Chrome Installation
run: |
Expand Down

0 comments on commit f12a5ca

Please sign in to comment.