setup-chrome
setup-chrome copied to clipboard
Need help on finding revision / commit number
Hi, first of all thank you for your hard work making this possible. I hope I can help you on that "download with exact chromium version". Because that's exactly my problem now. I want to download Chromium with exact version => 97.0.4692.115
. How can I get the commit number?
Here's the tag I got from the git repo => https://chromium.googlesource.com/chromium/src/+/refs/tags/97.0.4692.115
Also would like to know this, I can't find this info anywhere
I found this list of all old stable versions of Chromium , which may help. The value you want is download position
, which you can verify by reading the source for snapshot.ts
and looking at how it constructs URLs.
I'm able to install a selected version with these version numbers, but I'm still having problems with #240 in trying to actually run it.
This had me stumped as well – it's really difficult to match an actual Chromium version to the "commit position" described in the README.
But I think I finally found a method that works:
- Go to https://chromium.googlesource.com/chromium/src/+refs
- Click on the link for the version you want, eg for
107.0.5304.9
, you'll link to https://chromium.googlesource.com/chromium/src/+/refs/tags/107.0.5304.9 - Click on the
parent
link, which in the example above links to https://chromium.googlesource.com/chromium/src/+/b36b08f306ee7dc7689f992837e0c06b651c935d - Look for
refs/heads/main@{#
, and copy the number after that:1047731
That is the value to use for chrome-version
:
- name: Download Chrome
uses: browser-actions/setup-chrome@latest
with:
chrome-version: 1047731
@ueokande ☝️ FYI
FWIW, I ended up downloading Chrome directly from within the GitHub workflow like this:
sudo apt-get update
sudo apt-get install --yes \
fonts-liberation \
libcairo2 \
libgbm1 \
libgtk-3-0 \
libpango-1.0-0 \
libxdamage1 \
libxkbcommon0 \
xdg-utils \
libu2f-udev
CHROME_DOWNLOAD=google-chrome-stable_current_amd64.deb
curl --no-progress-meter \
--output /tmp/${CHROME_DOWNLOAD} \
https://dl.google.com/linux/direct/${CHROME_DOWNLOAD}
apt install --yes /tmp/${CHROME_DOWNLOAD}
Unfortunately using the Action in this repo is too brittle.
@mcalthrop - Thanks for dropping the instructions above, fixed my issue. Was bemused to realize that chrome-version needs to be a commit position and not a semver version (Of course I shouldn't complain about free and open source actions! :P)
I found this list of all old stable versions of Chromium , which may help. The value you want is
download position
, which you can verify by reading the source forsnapshot.ts
and looking at how it constructs URLs.I'm able to install a selected version with these version numbers, but I'm still having problems with #240 in trying to actually run it.
This was the key for me, thank you. The number needed is the download position, which can be very easily looked up for the desired version using that link. I tried several times with mcalthrop's solution but couldn't get it working - the number it was giving me was very close but wasn't the one I needed - 1135570 instead of 1135561 - and kept resulting in 404s.
The setup-chrome action now supports two type of exact versions; the four-parts of version and commit position
- Specific versions:
119
,120.0.6099
,121.0.6100.0
. The version are resolved by Chrome for Testing. - Commit positions like
1295939
. You can find commit positions from here.
Thank you for your request, and I'm closing this issue.