devops: retry download of upstream Node.js for drivers (#31962)

This commit is contained in:
Max Schmitt 2024-08-01 19:45:25 +02:00 committed by GitHub
parent a541751657
commit 73e0e92a7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ env:
jobs:
publish-canary:
name: "publish canary NPM"
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
if: github.repository == 'microsoft/playwright'
permissions:
id-token: write # This is required for OIDC login (azure/login) to succeed

View File

@ -10,7 +10,7 @@ env:
jobs:
publish-driver-release:
name: "publish playwright driver to CDN"
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
if: github.repository == 'microsoft/playwright'
permissions:
id-token: write # This is required for OIDC login (azure/login) to succeed

View File

@ -529,7 +529,7 @@ jobs:
build-playwright-driver:
name: "build-playwright-driver"
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4

View File

@ -31,7 +31,7 @@ function build {
mkdir -p ./output/playwright-${SUFFIX}
tar -xzf ./output/playwright-core.tgz -C ./output/playwright-${SUFFIX}/
curl ${NODE_URL} -o ./output/${NODE_DIR}.${ARCHIVE}
curl --retry 10 --retry-all-errors ${NODE_URL} -o ./output/${NODE_DIR}.${ARCHIVE}
NPM_PATH=""
if [[ "${ARCHIVE}" == "zip" ]]; then
cd ./output