Skip to content

Commit f033017

Browse files
committed
chore: avoid duplicate runs of CI in PRs
Run once for PRs, then again after merge.
1 parent 40f1424 commit f033017

6 files changed

Lines changed: 22 additions & 5 deletions

File tree

.github/workflows/alpine-test.yml

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

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

59
permissions:
610
contents: read

.github/workflows/codeql.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16+
branches: [main]
1617
pull_request:
1718
schedule:
1819
- cron: '27 10 * * 3'

.github/workflows/cygwin-test.yml

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

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

59
permissions:
610
contents: read

.github/workflows/lint.yml

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

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

59
permissions:
610
contents: read

.github/workflows/pythonpackage.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33

44
name: Python package
55

6-
on: [push, pull_request, workflow_dispatch]
6+
on:
7+
push:
8+
branches: [main]
9+
pull_request:
10+
workflow_dispatch:
711

812
permissions:
913
contents: read

0 commit comments

Comments
 (0)