]> Nishi Git Mirror - gwion.git/commitdiff
:wrench: Try new lines in commit_info
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Tue, 22 Sep 2020 19:51:35 +0000 (21:51 +0200)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Tue, 22 Sep 2020 19:51:35 +0000 (21:51 +0200)
.github/workflows/benchmarks.yml

index 7ead97796a4d02a66e4e5e80f6bb736a38d6e0f1..c344738e77f55b4be9c2d64edd0a104c2d53ade1 100644 (file)
@@ -16,4 +16,5 @@ jobs:
         ORG: fennecdjay
         REPO: gwion-benchmark
       run: |
-        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"
+        echo "{\"event_type\": \"${EVENT}\", \"client_payload\": {\"commit_info\":\"$(git log -n1 --date=format:'%D %H:%M:%S' --format='> Author: %an  \\nDate: %cd  \\nCommit: %h')\"}}" > commit_info
+        curl -d "@commit_info" -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"