]> Nishi Git Mirror - gwion.git/commitdiff
:wrench: Add benchmark dispatch
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Fri, 18 Sep 2020 04:57:51 +0000 (06:57 +0200)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Fri, 18 Sep 2020 04:57:51 +0000 (06:57 +0200)
.github/workflows/benchmarks.yml [new file with mode: 0644]

diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml
new file mode 100644 (file)
index 0000000..0f8dcaf
--- /dev/null
@@ -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"