CI: run on push only for main, PR branches are checked by pull_request
This commit is contained in:
1 parent
c2df1f4d30
commit
d1c96d3fcc
1 file changed
+3
@@ -1,7 +1,10 @@
|
|||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
|
# push only for main: a PR branch is already checked by pull_request,
|
||||||
|
# so both would run the same check twice.
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches: [main]
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
Reference in new issue
Block a user