devops: add manual trigger for chromium builders (#7670)
This commit is contained in:
parent
64ef88999e
commit
2c157796e6
11
.github/workflows/trigger_build_chromium.yml
vendored
11
.github/workflows/trigger_build_chromium.yml
vendored
|
|
@ -1,6 +1,12 @@
|
||||||
name: "Chromium Builder"
|
name: "Trigger: Chromium Builds"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
ref:
|
||||||
|
description: 'Playwright SHA / ref to build Chromium'
|
||||||
|
required: true
|
||||||
|
default: 'master'
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
|
@ -18,7 +24,8 @@ jobs:
|
||||||
curl -X POST \
|
curl -X POST \
|
||||||
-H "Accept: application/vnd.github.v3+json" \
|
-H "Accept: application/vnd.github.v3+json" \
|
||||||
-H "Authorization: token ${GH_TOKEN}" \
|
-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
|
https://api.github.com/repos/microsoft/playwright-internal/dispatches
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN }}
|
GH_TOKEN: ${{ secrets.REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN }}
|
||||||
|
GHREF: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.ref || github.sha }}
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
name: "Chromium With Symbols Builder"
|
name: "Trigger: Chromium with Symbols Builds"
|
||||||
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
ref:
|
ref:
|
||||||
description: 'Playwright SHA / ref to build Chromium'
|
description: 'Playwright SHA / ref to build Chromium With Symbols'
|
||||||
required: true
|
required: true
|
||||||
default: 'master'
|
default: 'master'
|
||||||
release:
|
release:
|
||||||
|
|
@ -16,7 +16,7 @@ on:
|
||||||
- release-*
|
- release-*
|
||||||
paths:
|
paths:
|
||||||
- browser_patches/chromium/BUILD_NUMBER
|
- browser_patches/chromium/BUILD_NUMBER
|
||||||
- .github/workflows/trigger_build_chromium.yml
|
- .github/workflows/trigger_build_chromium_with_symbols.yml
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
trigger:
|
trigger:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue