-
Notifications
You must be signed in to change notification settings - Fork 600
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
4 changed files
with
45 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 11 additions & 19 deletions
30
.github/actions/pin-browsers/action.yml → .github/actions/setup-chrome/action.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,38 @@ | ||
name: "Pin Browsers" | ||
description: "Install and setup Chrome and Firefox" | ||
name: Pin Browsers | ||
description: Install and setup Chrome and Firefox | ||
|
||
# List of browser versions | ||
# Chrome: https://www.ubuntuupdates.org/package/google_chrome/stable/main/base/google-chrome-stable | ||
# Firefox: https://www.ubuntuupdates.org/package/ubuntu_mozilla_security/focal/main/base/firefox | ||
# Chrome (ubuntu): https://www.ubuntuupdates.org/package/google_chrome/stable/main/base/google-chrome-stable | ||
# Chrome versions: https://versionhistory.googleapis.com/v1/chrome/platforms/linux/channels/stable/versions | ||
|
||
inputs: | ||
chrome-version: | ||
description: "Chrome version to install" | ||
default: "116.0.5845.110-1" | ||
firefox-version: | ||
description: "Firefox version to install" | ||
description: Chrome version to install | ||
default: "latest" | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: "Setup latest Chrome" | ||
- name: Setup latest Chrome | ||
if: ${{ inputs.chrome-version == 'latest' }} | ||
uses: browser-actions/setup-chrome@v1 | ||
with: | ||
chrome-version: ${{ inputs.chrome-version }} | ||
- name: "Print latest Chrome version" | ||
shell: bash | ||
- name: Print latest Chrome version | ||
if: ${{ inputs.chrome-version == 'latest' }} | ||
run: google-chrome-stable --version | ||
- name: "Setup Chrome with specific version" | ||
shell: bash | ||
run: google-chrome-stable --version | ||
- name: Setup Chrome with specific version | ||
if: ${{ inputs.chrome-version != 'latest' }} | ||
shell: bash | ||
env: | ||
CHROME_VERSION: ${{ inputs.chrome-version }} | ||
run: | | ||
if [ -n "$CHROME_VERSION" ]; then | ||
curl -L "https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROME_VERSION}_amd64.deb" > /tmp/chrome.deb | ||
curl -L "https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROME_VERSION}-1_amd64.deb" > /tmp/chrome.deb | ||
sudo dpkg -i /tmp/chrome.deb | ||
unlink /tmp/chrome.deb | ||
google-chrome-stable --version | ||
else | ||
echo "Skip Chrome upgrade" | ||
fi | ||
- name: "Setup Firefox" | ||
id: setup-firefox | ||
uses: browser-actions/setup-firefox@v1 | ||
with: | ||
firefox-version: ${{ inputs.firefox-version }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters