From d35fc1fa864716d4f0629dca989cf5859ab64a4f Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Fri, 18 Sep 2020 06:57:51 +0200 Subject: [PATCH] :wrench: Add benchmark dispatch --- .github/workflows/benchmarks.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/benchmarks.yml diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml new file mode 100644 index 00000000..0f8dcaf3 --- /dev/null +++ b/.github/workflows/benchmarks.yml @@ -0,0 +1,19 @@ +name: 'Benchmarks' +on: + workflow_run: + workflows: ["Linux"] + types: + - completed + +jobs: + post-test-success: + runs-on: ubuntu-latest + steps: + - name: call the other repo + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + EVENT: benchmark-event + ORG: fennecdjay + REPO: gwion-benchmark + run: | + curl -d "{\"event_type\": \"${EVENT}\"}" -H "Content-Type: application/json" -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.everest-preview+json" "https://api.github.com/repos/${ORG}/${REPO}/dispatches" -- 2.43.0