diff --git a/.github/workflows/test-results-master.yml b/.github/workflows/test-results-master.yml index b53900d490c61..9df6b2065bed0 100644 --- a/.github/workflows/test-results-master.yml +++ b/.github/workflows/test-results-master.yml @@ -61,9 +61,8 @@ jobs: - name: Commit if stats have changed run: |- - if ! git diff --quiet; then - git add "${{ env.BADGE_PATH }}" - git commit -m "Update test results from ${{ github.sha }}" + git add "${{ env.BADGE_PATH }}" + if git commit -m "Update test results from ${{ github.sha }}"; then git push else echo "Nothing has changed"