Doing a release (or generally pushing two commits at the same time) can trigger a race condition in the update-pr action that technically fails the CI workflow. This PR only runs this action for normal commits, in particular it does not run it for releases (which is the common case where we push multiple commits at once). To be sure, it also puts all update-pr jobs into a concurrency group that enforces sequential execution.
update-pr:
runs-on: ubuntu-latest
- if: github.repository == 'cvc5/cvc5' && github.event_name == 'push'
+ if: github.repository == 'cvc5/cvc5' && github.event_name == 'push' && github.ref == 'refs/head/main'
+ concurrency:
+ group: update-pr
steps:
- name: Automatically update PR
uses: adRise/update-pr-branch@v0.6.0