devops: add manual trigger for chromium builders (#7670)

This commit is contained in:
Andrey Lushnikov 2021-07-16 01:45:29 -08:00 committed by GitHub
parent 64ef88999e
commit 2c157796e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 5 deletions

View File

@ -1,6 +1,12 @@
name: "Chromium Builder"
name: "Trigger: Chromium Builds"
on:
workflow_dispatch:
inputs:
ref:
description: 'Playwright SHA / ref to build Chromium'
required: true
default: 'master'
push:
branches:
- master
@ -18,7 +24,8 @@ jobs:
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${GH_TOKEN}" \
--data "{\"event_type\": \"build_chromium\", \"client_payload\": {\"ref\": \"${GITHUB_SHA}\"}}" \
--data "{\"event_type\": \"build_chromium\", \"client_payload\": {\"ref\": \"${GHREF}\"}}" \
https://api.github.com/repos/microsoft/playwright-internal/dispatches
env:
GH_TOKEN: ${{ secrets.REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN }}
GHREF: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.ref || github.sha }}

View File

@ -1,11 +1,11 @@
name: "Chromium With Symbols Builder"
name: "Trigger: Chromium with Symbols Builds"
on:
workflow_dispatch:
inputs:
ref:
description: 'Playwright SHA / ref to build Chromium'
description: 'Playwright SHA / ref to build Chromium With Symbols'
required: true
default: 'master'
release:
@ -16,7 +16,7 @@ on:
- release-*
paths:
- browser_patches/chromium/BUILD_NUMBER
- .github/workflows/trigger_build_chromium.yml
- .github/workflows/trigger_build_chromium_with_symbols.yml
jobs:
trigger: