Skip to content

Commit 8c01f35

Browse files
committed
chore: prevent CI double runs on push + pull_request
1 parent c2ab9bb commit 8c01f35

13 files changed

+49
-21
lines changed

.github/workflows/check_db_migration_confict.yml

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ on:
33
push:
44
paths:
55
- "superset/migrations/**"
6+
branches:
7+
- 'master'
8+
pull_request:
9+
paths:
10+
- "superset/migrations/**"
11+
types: [synchronize, opened, reopened, ready_for_review]
612

713
jobs:
814
check_db_migration_conflict:

.github/workflows/prefer-typescript.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ name: Prefer TypeScript
22

33
on:
44
push:
5-
branches-ignore:
6-
- "dependabot/**"
5+
branches:
6+
- 'master'
77
pull_request:
8+
types: [synchronize, opened, reopened, ready_for_review]
89

910
jobs:
1011
prefer_typescript:

.github/workflows/superset-cli.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Superset CLI tests
22

33
on:
44
push:
5-
branches-ignore:
6-
- "dependabot/npm_and_yarn/**"
5+
branches:
6+
- 'master'
77
pull_request:
88
types: [synchronize, opened, reopened, ready_for_review]
99

.github/workflows/superset-docs.yml

+3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@ on:
44
push:
55
paths:
66
- "docs/**"
7+
branches:
8+
- 'master'
79
pull_request:
810
paths:
911
- "docs/**"
12+
types: [synchronize, opened, reopened, ready_for_review]
1013

1114
jobs:
1215
config:

.github/workflows/superset-e2e.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ name: E2E
22

33
on:
44
push:
5-
branches-ignore:
6-
- "dependabot/**/docs/**"
7-
paths-ignore:
8-
- "docs/**"
5+
branches:
6+
- 'master'
97
pull_request:
108
types: [synchronize, opened, reopened, ready_for_review]
119

.github/workflows/superset-frontend.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@ name: Frontend
22

33
on:
44
push:
5-
branches-ignore:
6-
- "dependabot/**/docs/**"
7-
- "dependabot/**/cypress-base/**"
5+
branches:
6+
- "master"
7+
paths:
8+
- "superset-frontend/**"
89
pull_request:
910
types: [synchronize, opened, reopened, ready_for_review]
11+
paths:
12+
- "superset-frontend/**"
1013

1114
jobs:
1215
frontend-build:

.github/workflows/superset-helm-lint.yml

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: Lint and Test Charts
33
on:
44
pull_request:
55
types: [opened, edited, reopened, synchronize]
6+
paths:
7+
- "helm/**"
68

79
jobs:
810
lint-test:

.github/workflows/superset-python-integrationtest.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: Python-Integration
33

44
on:
55
push:
6-
branches-ignore:
7-
- "dependabot/npm_and_yarn/**"
6+
branches:
7+
- 'master'
88
pull_request:
99
types: [synchronize, opened, reopened, ready_for_review]
1010

.github/workflows/superset-python-misc.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@ name: Python Misc
33

44
on:
55
push:
6-
branches-ignore:
7-
- "dependabot/npm_and_yarn/**"
6+
branches:
7+
- 'master'
8+
paths:
9+
- "superset/**"
810
pull_request:
911
types: [synchronize, opened, reopened, ready_for_review]
12+
paths:
13+
- "superset/**"
1014

1115
jobs:
1216
python-lint:

.github/workflows/superset-python-presto-hive.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@ name: Python Presto/Hive
33

44
on:
55
push:
6-
branches-ignore:
7-
- "dependabot/npm_and_yarn/**"
6+
branches:
7+
- 'master'
8+
paths:
9+
- "superset/**"
810
pull_request:
911
types: [synchronize, opened, reopened, ready_for_review]
12+
paths:
13+
- "superset/**"
1014

1115
jobs:
1216
test-postgres-presto:

.github/workflows/superset-python-unittest.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@ name: Python-Unit
33

44
on:
55
push:
6-
branches-ignore:
7-
- "dependabot/npm_and_yarn/**"
6+
branches:
7+
- 'master'
8+
paths:
9+
- "superset/**"
810
pull_request:
911
types: [synchronize, opened, reopened, ready_for_review]
12+
paths:
13+
- "superset/**"
1014

1115
jobs:
1216
unit-tests:

.github/workflows/superset-translations.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Translations
22

33
on:
44
push:
5-
branches-ignore:
6-
- "dependabot/npm_and_yarn/**"
5+
branches:
6+
- 'master'
77
pull_request:
88
types: [synchronize, opened, reopened, ready_for_review]
99

.github/workflows/superset-websocket.yml

+3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
name: WebSocket server
22
on:
33
push:
4+
branches:
5+
- 'master'
46
paths:
57
- "superset-websocket/**"
68
pull_request:
79
paths:
810
- "superset-websocket/**"
11+
types: [synchronize, opened, reopened, ready_for_review]
912

1013
jobs:
1114
app-checks:

0 commit comments

Comments
 (0)