From d4c30260580b3ea9d49483b98d5c0f8814baa681 Mon Sep 17 00:00:00 2001 From: ajohns Date: Wed, 22 Jun 2022 21:06:12 +1000 Subject: [PATCH] fix accidental skip of fail in benchmarking ci Signed-off-by: ajohns --- .github/workflows/benchmark.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/benchmark.yaml b/.github/workflows/benchmark.yaml index 080263e97..dabcb004c 100644 --- a/.github/workflows/benchmark.yaml +++ b/.github/workflows/benchmark.yaml @@ -107,9 +107,11 @@ jobs: - name: Git commit and push run: | - git add --all - git commit \ - -m "Generated from GitHub "${{ github.workflow }}" Workflow" \ - && git push origin master \ - || echo "Nothing new to commit" + if [[ "$(git status --porcelain)" == "" ]]; then + echo "Nothing new to commit" + else + git add --all + git commit -m "Generated from GitHub "${{ github.workflow }}" Workflow" + git push origin master + fi working-directory: src