2021-07-16 12:45:29 +03:00
|
|
|
name: "Trigger: Chromium Builds"
|
2021-01-22 12:05:49 +03:00
|
|
|
|
|
|
|
on:
|
2021-07-16 12:45:29 +03:00
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
ref:
|
|
|
|
description: 'Playwright SHA / ref to build Chromium'
|
|
|
|
required: true
|
2021-12-08 09:58:33 +03:00
|
|
|
default: 'main'
|
2021-01-22 12:05:49 +03:00
|
|
|
push:
|
|
|
|
branches:
|
2021-12-08 09:58:33 +03:00
|
|
|
- main
|
2021-01-22 12:05:49 +03:00
|
|
|
- release-*
|
|
|
|
paths:
|
|
|
|
- browser_patches/chromium/BUILD_NUMBER
|
2021-01-22 12:26:31 +03:00
|
|
|
- .github/workflows/trigger_build_chromium.yml
|
2021-01-22 12:05:49 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
trigger:
|
|
|
|
name: "trigger"
|
2021-04-05 22:39:15 +03:00
|
|
|
runs-on: ubuntu-20.04
|
2021-01-22 12:05:49 +03:00
|
|
|
steps:
|
|
|
|
- run: |
|
|
|
|
curl -X POST \
|
|
|
|
-H "Accept: application/vnd.github.v3+json" \
|
|
|
|
-H "Authorization: token ${GH_TOKEN}" \
|
2021-07-16 12:45:29 +03:00
|
|
|
--data "{\"event_type\": \"build_chromium\", \"client_payload\": {\"ref\": \"${GHREF}\"}}" \
|
2021-01-22 12:05:49 +03:00
|
|
|
https://api.github.com/repos/microsoft/playwright-internal/dispatches
|
|
|
|
env:
|
|
|
|
GH_TOKEN: ${{ secrets.REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN }}
|
2021-07-16 12:45:29 +03:00
|
|
|
GHREF: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.ref || github.sha }}
|