Skip to content

Commit 44bc696

Browse files
committed
Merge branch 'bugfix/1328-benchmark-should-error'
2 parents cf3f73b + d4c3026 commit 44bc696

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/benchmark.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,11 @@ jobs:
107107

108108
- name: Git commit and push
109109
run: |
110-
git add --all
111-
git commit \
112-
-m "Generated from GitHub "${{ github.workflow }}" Workflow" \
113-
&& git push origin master \
114-
|| echo "Nothing new to commit"
110+
if [[ "$(git status --porcelain)" == "" ]]; then
111+
echo "Nothing new to commit"
112+
else
113+
git add --all
114+
git commit -m "Generated from GitHub "${{ github.workflow }}" Workflow"
115+
git push origin master
116+
fi
115117
working-directory: src

0 commit comments

Comments
 (0)