From 10111790d0871d29317340cc2943eedc683e75da Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Wed, 20 Apr 2022 23:45:51 -0600 Subject: [PATCH] devops: add workflow to trigger chromium tip-of-tree builds (#13668) --- .../trigger_build_chromium_tip_of_tree.yml | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/trigger_build_chromium_tip_of_tree.yml diff --git a/.github/workflows/trigger_build_chromium_tip_of_tree.yml b/.github/workflows/trigger_build_chromium_tip_of_tree.yml new file mode 100644 index 0000000000..7dee9393b9 --- /dev/null +++ b/.github/workflows/trigger_build_chromium_tip_of_tree.yml @@ -0,0 +1,31 @@ +name: "Trigger: Chromium Tip Of Tree Builds" + +on: + workflow_dispatch: + inputs: + ref: + description: 'Playwright SHA / ref to build Chromium Tip Of Tree' + required: true + default: 'main' + push: + branches: + - main + - release-* + paths: + - browser_patches/chromium/BUILD_NUMBER + - .github/workflows/trigger_build_chromium_tip_of_tree.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_tip_of_tree\", \"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 }}