Skip to content

Commit c59e8f8

Browse files
authored
Run push workflow only for push to master and develop branch (#764)
* Run push workflow only for push to master and develop branch * remove comments from `settings.json`
1 parent c06cb75 commit c59e8f8

File tree

6 files changed

+19
-34
lines changed

6 files changed

+19
-34
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@ on: # yamllint disable-line rule:truthy
1010
push:
1111
branches: [develop, master]
1212
pull_request:
13-
# The branches below must be a subset of the branches above
14-
branches: [develop]
13+
branches: [develop, master]
14+
paths:
15+
- '**/*.py'
16+
- '**/*.js'
17+
- '**/*.ts'
1518
schedule:
1619
- cron: '0 14 * * 1'
1720

.github/workflows/test-brew.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,9 @@ name: brew
33

44
on: # yamllint disable-line rule:truthy
55
push:
6-
paths:
7-
- 'proxy/**'
8-
- 'tests/**'
9-
- 'examples/**'
10-
- 'requirements*'
11-
- 'setup.cfg'
12-
- 'check.py'
13-
- 'MANIFEST.in'
14-
- '.github/workflows/test-brew.yml'
15-
- 'helper/homebrew/**'
6+
branches:
7+
- master
8+
- develop
169
pull_request:
1710
paths:
1811
- 'proxy/**'

.github/workflows/test-dashboard.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: dashboard
33

44
on: # yamllint disable-line rule:truthy
55
push:
6-
paths:
7-
- 'dashboard/**'
8-
- '.github/workflows/test-dashboard.yml'
6+
branches:
7+
- master
8+
- develop
99
pull_request:
1010
paths:
1111
- 'dashboard/**'

.github/workflows/test-docker.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,9 @@ name: docker
33

44
on: # yamllint disable-line rule:truthy
55
push:
6-
paths:
7-
- 'proxy/**'
8-
- 'tests/**'
9-
- 'examples/**'
10-
- 'requirements*'
11-
- 'setup.cfg'
12-
- 'check.py'
13-
- 'MANIFEST.in'
14-
- '.github/workflows/test-docker.yml'
15-
- 'Dockerfile'
6+
branches:
7+
- master
8+
- develop
169
pull_request:
1710
paths:
1811
- 'proxy/**'

.github/workflows/test-library.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,9 @@ name: lib
33

44
on: # yamllint disable-line rule:truthy
55
push:
6-
paths:
7-
- 'proxy/**'
8-
- 'tests/**'
9-
- 'examples/**'
10-
- 'requirements*'
11-
- 'setup.cfg'
12-
- 'check.py'
13-
- 'MANIFEST.in'
14-
- '.github/workflows/test-library.yml'
6+
branches:
7+
- master
8+
- develop
159
pull_request:
1610
paths:
1711
- 'proxy/**'
@@ -22,6 +16,7 @@ on: # yamllint disable-line rule:truthy
2216
- 'check.py'
2317
- 'MANIFEST.in'
2418
- '.github/workflows/test-library.yml'
19+
- '.*'
2520
workflow_dispatch:
2621
inputs:
2722
release-version:

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"editor.defaultFormatter": "esbenp.prettier-vscode",
33
"editor.formatOnSave": true,
4+
"editor.formatOnSaveMode": "modifications",
45
"editor.codeActionsOnSave": {
56
"source.fixAll": true
67
},

0 commit comments

Comments
 (0)