mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 21:53:35 +03:00
32 lines
950 B
YAML
32 lines
950 B
YAML
name: "Trigger: Chromium Builds"
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
ref:
|
|
description: 'Playwright SHA / ref to build Chromium'
|
|
required: true
|
|
default: 'master'
|
|
push:
|
|
branches:
|
|
- master
|
|
- release-*
|
|
paths:
|
|
- browser_patches/chromium/BUILD_NUMBER
|
|
- .github/workflows/trigger_build_chromium.yml
|
|
|
|
jobs:
|
|
trigger:
|
|
name: "trigger"
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- run: |
|
|
curl -X POST \
|
|
-H "Accept: application/vnd.github.v3+json" \
|
|
-H "Authorization: token ${GH_TOKEN}" \
|
|
--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 }}
|