From: SenorGrande Date: Mon, 12 Oct 2020 08:42:15 +0000 (+1300) Subject: :wrench: Add command to skip benchmark X-Git-Tag: nightly~1233^2~1^2 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=f11c022377922b9bb2aa0fc54c4fb8d1fd8439c7;p=gwion.git :wrench: Add command to skip benchmark Command will exit CI if 'skip ci' exists in the commit message. This is detailed in Issue #209 --- diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index e2f2fb30..06e7d925 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -20,5 +20,6 @@ jobs: ORG: fennecdjay REPO: gwion-benchmark run: | + [ ! -z "$(git log -n1 --oneline --grep='skip ci')" ] && exit 0 echo "{\"event_type\": \"${EVENT}\", \"client_payload\": {\"commit_info\":\"$(git log -n1 --date=format:'%D %H:%M:%S' --format='> Author: %an Date: %cd Commit: %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"