Skip to content

Commit

Permalink
Allow empty commit
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineGautier committed Jul 17, 2024
1 parent e06bad7 commit c70c445
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
run: |
git config --global user.name "${GH_USERNAME}"
git config --global user.email "${GH_USERNAME}@users.noreply.github.com"
git diff-index --quiet HEAD || { git commit -m "Add ${{ matrix.os }} binaries" && git pull && git push; }
git diff-index --quiet HEAD || { git commit -m "Add ${{ matrix.os }} binaries" && git pull && git push --allow-empty; }
# We use cmd /c because powershell <7 does not support chain operators.
- name: Push Windows binaries
Expand All @@ -102,4 +102,4 @@ jobs:
run: |
git config --global user.name "${{ env.GH_USERNAME }}"
git config --global user.email "${{ env.GH_USERNAME }}@users.noreply.github.com"
cmd /c 'git diff-index --quiet HEAD || ( git commit -m "Add ${{ matrix.os }} binaries" && git pull && git push )'
cmd /c 'git diff-index --quiet HEAD || ( git commit -m "Add ${{ matrix.os }} binaries" && git pull && git push --allow-empty )'

0 comments on commit c70c445

Please sign in to comment.