mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 12:48:18 +00:00
fix(chromium): Fix for chromium using very low base position (#4315)
This commit is contained in:
@@ -17,8 +17,9 @@ function GetChromiumRevision {
|
|||||||
# Take the first part of the revision variable to search not only for a specific version,
|
# Take the first part of the revision variable to search not only for a specific version,
|
||||||
# but also for similar ones, so that we can get a previous one if the required revision is not found
|
# but also for similar ones, so that we can get a previous one if the required revision is not found
|
||||||
FIRST_PART_OF_REVISION=${REVISION:0:${#REVISION}/2}
|
FIRST_PART_OF_REVISION=${REVISION:0:${#REVISION}/2}
|
||||||
URL="https://www.googleapis.com/storage/v1/b/chromium-browser-snapshots/o?delimiter=/&prefix=Linux_x64/${FIRST_PART_OF_REVISION}"
|
FIRST_PART_OF_PREVIOUS_REVISION=$(expr $FIRST_PART_OF_REVISION - 1)
|
||||||
VERSIONS=$(curl -s $URL | jq -r '.prefixes[]' | cut -d "/" -f 2 | sort --version-sort)
|
URL="https://www.googleapis.com/storage/v1/b/chromium-browser-snapshots/o?delimiter=/&prefix=Linux_x64"
|
||||||
|
VERSIONS=$((curl -s $URL/${FIRST_PART_OF_REVISION} | jq -r '.prefixes[]' && curl -s $URL/${FIRST_PART_OF_PREVIOUS_REVISION} | jq -r '.prefixes[]') | cut -d "/" -f 2 | sort --version-sort)
|
||||||
|
|
||||||
# If required Chromium revision is not found in the list
|
# If required Chromium revision is not found in the list
|
||||||
# we should have to decrement the revision number until we find one.
|
# we should have to decrement the revision number until we find one.
|
||||||
|
|||||||
Reference in New Issue
Block a user