mirror of
https://github.com/actions/runner-images.git
synced 2025-12-16 06:40:32 +00:00
Update retrieving CHROME_VERSION
Co-Authored-By: Lctrs <Lctrs@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
3cea9bfcfa
commit
9dd76a93c4
@@ -26,7 +26,8 @@ fi
|
||||
echo "Lastly, documenting what we added to the metadata file"
|
||||
DocumentInstalledItem "Google Chrome ($(google-chrome --version))"
|
||||
|
||||
CHROME_VERSION=$(google-chrome --version | grep -Eo "([0-9]+\.?){4}" | cut -d "." -f 1,2,3)
|
||||
CHROME_VERSION=$(google-chrome --product-version)
|
||||
CHROME_VERSION=${CHROME_VERSION%.*}
|
||||
|
||||
# Determine latest release of chromedriver
|
||||
# Compatibility of Google Chrome and Chromedriver: https://sites.google.com/a/chromium.org/chromedriver/downloads/version-selection
|
||||
@@ -73,4 +74,4 @@ mv "selenium-server-standalone-$SELENIUM_VERSION.jar" "/usr/share/java/selenium-
|
||||
echo "CLASSPATH=/usr/share/java/selenium-server-standalone.jar:.:$CLASSPATH" | tee -a /etc/environment
|
||||
|
||||
echo "Lastly, documenting what we added to the metadata file"
|
||||
DocumentInstalledItem "Selenium server standalone"
|
||||
DocumentInstalledItem "Selenium server standalone"
|
||||
|
||||
Reference in New Issue
Block a user