Skip to content

Commit eca3491

Browse files
committed
cherry-pick(#709): chore: proper driver URL detection
Since Nov 16, 2021, we have the following conventions: - Drivers published from tip-of-tree have an `-alpha` version and are stored at `/next` subfolder on Azure Storage. - Drivers auto-published for each commit of the release branch have a `-beta` version and are stored at `/next` subfolder on Azure Storage. - Drivers published due to a release might have `-rc` as part of the version, and are stored in root subfolder on Azure Storage. We no longer have driver versions that include "next" as part of the version. I kept it for backwards compatibility.
1 parent 558df1f commit eca3491

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/download_driver_for_all_platforms.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ do
4545
echo "Downloading driver for $PLATFORM to $(pwd)"
4646

4747
URL=https://playwright.azureedge.net/builds/driver
48-
if ! [[ $CLI_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
48+
if [[ "$CLI_VERSION" == *-alpha* || "$CLI_VERSION" == *-beta* || "$CLI_VERSION" == *-next* ]]; then
4949
URL=$URL/next
5050
fi
5151
URL=$URL/$FILE_NAME

0 commit comments

Comments
 (0)