devops: add workflow to trigger Chromium builds once revision changes

This commit is contained in:
Andrey Lushnikov 2021-01-22 12:05:49 +03:00
parent 2096f4248a
commit 86775f06d9

View file

@ -0,0 +1,24 @@
name: "Chromium Builder"
on:
push:
branches:
- master
- release-*
paths:
- browser_patches/chromium/BUILD_NUMBER
- .github/workflows/trigger_chromium_build.yml
jobs:
trigger:
name: "trigger"
runs-on: ubuntu-18.04
steps:
- run: |
curl -X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${GH_TOKEN}" \
--data '{"event_type": "build_chromium"}' \
https://api.github.com/repos/microsoft/playwright-internal/dispatches
env:
GH_TOKEN: ${{ secrets.REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN }}