]> Nishi Git Mirror - gwion.git/commitdiff
:wrench: Use commit info
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Tue, 22 Sep 2020 14:01:39 +0000 (16:01 +0200)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Tue, 22 Sep 2020 14:01:39 +0000 (16:01 +0200)
.github/workflows/benchmarks.yml

index f5957b2080752713271e18dfccaa3d4ed6ea0229..7ead97796a4d02a66e4e5e80f6bb736a38d6e0f1 100644 (file)
@@ -16,4 +16,4 @@ jobs:
         ORG: fennecdjay
         REPO: gwion-benchmark
       run: |
-        curl -d "{\"event_type\": \"${EVENT}\"}" -H "Content-Type: application/json" -H "Authorization: token ${{ secrets.BENCHMARK_TOKEN }}" -H "Accept: application/vnd.github.everest-preview+json" "https://api.github.com/repos/${ORG}/${REPO}/dispatches"
+        curl -d "{\"event_type\": \"${EVENT}\", \"client_payload\": {\"commit_info\":\"$(git log -n1 --format='> Author: %an%nDate: %cd%nCommit: %h')\"}\" -H "Content-Type: application/json" -H "Authorization: token ${{ secrets.BENCHMARK_TOKEN }}" -H "Accept: application/vnd.github.everest-preview+json" "https://api.github.com/repos/${ORG}/${REPO}/dispatches"