From 6895138f98f4bdc6e06aab0b1528cf982fe30681 Mon Sep 17 00:00:00 2001 From: Jayjeet Chakraborty Date: Fri, 3 Sep 2021 14:02:22 +0530 Subject: [PATCH] SKYHOOK-273: [CI] Add benchmark trigger workflow --- .github/workflows/benchmark.yml | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/benchmark.yml diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml new file mode 100644 index 0000000000000..af2057833f22b --- /dev/null +++ b/.github/workflows/benchmark.yml @@ -0,0 +1,34 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +name: Benchmark + +on: + pull_request: + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - name: Trigger Benchmark Image Builder + run: | + curl \ + -X POST \ + -H "Accept: application/vnd.github.v3+json" \ + -u JayjeetAtGithub:${{ secrets.PAT }} \ + https://api.github.com/repos/uccross/skyhookdm-arrow-docker/dispatches \ + -d '{ "event_type": "run", "client_payload": {"ref": "${{ github.event.pull_request.numberĀ }}", "branch": "${{ github.head_ref }}", "commit_sha": "${{ github.sha }}" } }'