Skip to content

Commit a0dcdd7

Browse files
committed
don't run CI twice on branches with open PRs
1 parent 56dc655 commit a0dcdd7

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: "CodeQL"
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
48

59
jobs:
610
analyze:

.github/workflows/format.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
branches:
66
- master
77
pull_request:
8-
branches: [ "**" ]
98

109
jobs:
1110
format:

.github/workflows/run-tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: "Run tests"
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
48

59
jobs:
610
test:

0 commit comments

Comments
 (0)