devops: use repository dispatch to trigger builds for all applications (#5104)

This commit is contained in:
Andrey Lushnikov 2021-01-22 01:26:31 -08:00 коммит произвёл GitHub
Родитель 86775f06d9
Коммит a370443a8a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
5 изменённых файлов: 97 добавлений и 1 удалений

Просмотреть файл

@ -7,7 +7,7 @@ on:
- release-*
paths:
- browser_patches/chromium/BUILD_NUMBER
- .github/workflows/trigger_chromium_build.yml
- .github/workflows/trigger_build_chromium.yml
jobs:
trigger:

24
.github/workflows/trigger_build_ffmpeg.yml поставляемый Normal file
Просмотреть файл

@ -0,0 +1,24 @@
name: "FFMPEG Builder"
on:
push:
branches:
- master
- release-*
paths:
- browser_patches/ffmpeg/BUILD_NUMBER
- .github/workflows/trigger_build_ffmpeg.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_ffmpeg"}' \
https://api.github.com/repos/microsoft/playwright-internal/dispatches
env:
GH_TOKEN: ${{ secrets.REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN }}

24
.github/workflows/trigger_build_firefox.yml поставляемый Normal file
Просмотреть файл

@ -0,0 +1,24 @@
name: "Firefox Builder"
on:
push:
branches:
- master
- release-*
paths:
- browser_patches/firefox/BUILD_NUMBER
- .github/workflows/trigger_build_firefox.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_firefox"}' \
https://api.github.com/repos/microsoft/playwright-internal/dispatches
env:
GH_TOKEN: ${{ secrets.REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN }}

24
.github/workflows/trigger_build_webkit.yml поставляемый Normal file
Просмотреть файл

@ -0,0 +1,24 @@
name: "WebKit Builder"
on:
push:
branches:
- master
- release-*
paths:
- browser_patches/webkit/BUILD_NUMBER
- .github/workflows/trigger_build_webkit.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_webkit"}' \
https://api.github.com/repos/microsoft/playwright-internal/dispatches
env:
GH_TOKEN: ${{ secrets.REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN }}

24
.github/workflows/trigger_build_winldd.yml поставляемый Normal file
Просмотреть файл

@ -0,0 +1,24 @@
name: "WinLDD Builder"
on:
push:
branches:
- master
- release-*
paths:
- browser_patches/winldd/BUILD_NUMBER
- .github/workflows/trigger_build_winldd.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_winldd"}' \
https://api.github.com/repos/microsoft/playwright-internal/dispatches
env:
GH_TOKEN: ${{ secrets.REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN }}