ci: avoid running the workflow twice on pull requests
Some checks failed
CI / lint-and-test (pull_request) Successful in 11s
Version bump / version-bump (pull_request) Failing after 6s

Restrict the push trigger to master so a branch with an open pull request
does not run lint-and-test for both the push and pull_request events.
This commit is contained in:
pedro-bento 2026-10-06 20:51:15 +01:00
parent 1f9a9b4e77
commit 5dda644463

View file

@ -15,7 +15,11 @@ name: CI
# job-level `if:` and reports the skipped job as a failure instead.
on:
# Push runs only on the integration branch. A branch with an open pull
# request would otherwise run this workflow twice: once for the `push` event
# and once for the `pull_request` event.
push:
branches: [master]
pull_request:
jobs: