File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -29,13 +29,15 @@ jobs:
2929 - name : Setup npm
30303131
32- - name : Install Firefox 123.0
32+ - name : Install Latest Firefox
3333 run : |
34- sudo apt-get purge firefox
35- wget "https://ftp.mozilla.org/pub/firefox/releases/123.0/linux-x86_64/en-US/firefox-123.0.tar.bz2"
36- tar -xjf firefox-123.0.tar.bz2
34+ sudo apt-get purge -y firefox
35+ LATEST_VERSION=$(curl -s https://product-details.mozilla.org/1.0/firefox_versions.json | jq -r '.LATEST_FIREFOX_VERSION')
36+ echo "Latest Firefox version is $LATEST_VERSION"
37+ wget "https://ftp.mozilla.org/pub/firefox/releases/${LATEST_VERSION}/linux-x86_64/en-US/firefox-${LATEST_VERSION}.tar.xz" -O firefox.tar.xz
38+ tar -xJf firefox.tar.xz
3739 sudo mv firefox /opt/firefox
38- sudo ln -s /opt/firefox/firefox /usr/bin/firefox
40+ sudo ln -sf /opt/firefox/firefox /usr/bin/firefox
3941
4042 - name : Install Required System Packages
4143 run : sudo apt-get update && sudo apt-get install -y libxmlsec1-dev ubuntu-restricted-extras xvfb
You can’t perform that action at this time.
0 commit comments