ci: avoid running the workflow twice on pull requests
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:
parent
1f9a9b4e77
commit
5dda644463
1 changed files with 4 additions and 0 deletions
|
|
@ -15,7 +15,11 @@ name: CI
|
||||||
# job-level `if:` and reports the skipped job as a failure instead.
|
# job-level `if:` and reports the skipped job as a failure instead.
|
||||||
|
|
||||||
on:
|
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:
|
push:
|
||||||
|
branches: [master]
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue