Skip to content

Commit

Permalink
Make homebrew actions continue to test even if no new version was com…
Browse files Browse the repository at this point in the history
…mitted because there was no change.
  • Loading branch information
Kasper Peeters committed Dec 30, 2024
1 parent ba4a2c0 commit f176875
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/homebrew-devel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ jobs:
git config user.name "Kasper Peeters"
git config user.email "[email protected]"
git add cadabra2-devel.rb
git commit -a -m "Update to release ${{ env.VERSION }} commit ${{ env.COMMIT }}."
git push
git diff-index --quiet HEAD || (git commit -a -m "Update to release ${{ env.VERSION }} commit ${{ env.COMMIT }}." && git push)
test:
needs: build
runs-on: macos-latest
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/homebrew.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ jobs:
git config user.name "Kasper Peeters"
git config user.email "[email protected]"
git add cadabra2.rb
git commit -a -m "Update to release ${{ env.VERSION }}."
git push
git diff-index --quiet HEAD || (git commit -a -m "Update to release ${{ env.VERSION }}." && git push)
test:
Expand Down

0 comments on commit f176875

Please sign in to comment.