From 7e00e866823dbe0e045af69d0712007bb06087c0 Mon Sep 17 00:00:00 2001 From: kaesinol Date: Mon, 20 Nov 2023 16:35:35 +0800 Subject: [PATCH] :construction_worker: Update chromedriver acquisition method --- .github/workflows/python-app.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/python-app.yaml b/.github/workflows/python-app.yaml index c0e49e7..7bb5759 100644 --- a/.github/workflows/python-app.yaml +++ b/.github/workflows/python-app.yaml @@ -2,9 +2,6 @@ name: Python application on: push: - branches: - - dev - - main paths: - '**.py' - '**.yml' @@ -20,7 +17,7 @@ jobs: - name: Install Chrome run: | wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb - wget https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6045.105/linux64/chromedriver-linux64.zip + wget -O chrome-linux64.zip `curl -s https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json | jq -r '.channels.Stable.downloads.chromedriver[0].url'` sudo rm -rf /usr/bin/chromedriver sudo mkdir /usr/bin/chromedriver sudo unzip chromedriver-linux64.zip -d /usr/bin/chromedriver