2023-01-31 17:41:29 +03:00
|
|
|
name: "Trigger: Chromium with Symbols Builds"
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
release:
|
|
|
|
types: [published]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
trigger:
|
|
|
|
name: "trigger"
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: '16'
|
|
|
|
- name: Get Chromium revision
|
|
|
|
id: chromium-version
|
|
|
|
run: |
|
|
|
|
REVISION=$(node -e "console.log(require('./packages/playwright-core/browsers.json').browsers.find(b => b.name === 'chromium-with-symbols').revision)")
|
|
|
|
echo "REVISION=$REVISION" >> $GITHUB_OUTPUT
|
|
|
|
- run: |
|
|
|
|
curl -X POST \
|
|
|
|
-H "Accept: application/vnd.github.v3+json" \
|
|
|
|
-H "Authorization: token ${GH_TOKEN}" \
|
2023-01-31 17:55:01 +03:00
|
|
|
--data "{\"event_type\": \"build_chromium_with_symbols\", \"client_payload\": {\"revision\": \"${CHROMIUM_REVISION}\"}}" \
|
2023-01-31 17:41:29 +03:00
|
|
|
https://api.github.com/repos/microsoft/playwright-browsers/dispatches
|
|
|
|
env:
|
|
|
|
GH_TOKEN: ${{ secrets.REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN }}
|
2023-01-31 17:55:01 +03:00
|
|
|
CHROMIUM_REVISION: ${{ steps.chromium-version.outputs.REVISION }}
|