Skip to content

Commit

Permalink
Use variable for Chrome version
Browse files Browse the repository at this point in the history
  • Loading branch information
MediaMarco committed Nov 16, 2023
1 parent b5e243d commit d886e2f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,16 @@ on:
schedule:
- cron: '0 9 * * *'

env:
CHROME_VERSION: 119.0.6045.159

jobs:
build:
runs-on: ubuntu-20.04
env:
DISPLAY: :0
SE_BROWSER_PATH=BROWSER_PATH: /home/runner/work/jlineup/jlineup/chrome/linux-119.0.6045.105/chrome-linux64/chrome
webdriver.chrome.driver: /home/runner/work/jlineup/jlineup/chromedriver/linux-119.0.6045.105/chromedriver-linux64/chromedriver
SE_BROWSER_PATH=BROWSER_PATH: /home/runner/work/jlineup/jlineup/chrome/linux-$CHROME_VERSION/chrome-linux64/chrome
webdriver.chrome.driver: /home/runner/work/jlineup/jlineup/chromedriver/linux-$CHROME_VERSION/chromedriver-linux64/chromedriver
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
Expand All @@ -49,10 +51,10 @@ jobs:
run: |
sudo rm -rf /usr/bin/chromedriver
sudo rm -rf /usr/bin/google-chrome
npx @puppeteer/browsers install chrome@119.0.6045.105
npx @puppeteer/browsers install chromedriver@119.0.6045.105
sudo ln -s /home/runner/work/jlineup/jlineup/chromedriver/linux-119.0.6045.105/chromedriver-linux64/chromedriver /usr/bin/chromedriver
sudo ln -s /home/runner/work/jlineup/jlineup/chrome/linux-119.0.6045.105/chrome-linux64/chrome /usr/bin/google-chrome
npx @puppeteer/browsers install chrome@$CHROME_VERSION
npx @puppeteer/browsers install chromedriver@$CHROME_VERSION
sudo ln -s /home/runner/work/jlineup/jlineup/chromedriver/linux-$CHROME_VERSION/chromedriver-linux64/chromedriver /usr/bin/chromedriver
sudo ln -s /home/runner/work/jlineup/jlineup/chrome/linux-$CHROME_VERSION/chrome-linux64/chrome /usr/bin/google-chrome
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
Expand Down

0 comments on commit d886e2f

Please sign in to comment.