Skip to content

Commit 20714c2

Browse files
committed
add condition for github workflows
1 parent 9dd4ac4 commit 20714c2

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

.github/workflows/json-smart-formatting.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,19 @@ on:
55
branches:
66
- master
77
- upgrade
8+
paths:
9+
- 'accessors-smart/**'
10+
- 'json-smart/**'
11+
- 'json-smart-action/**'
12+
- '.github/workflows/json-smart-formatting.yml'
813
pull_request:
914
branches:
1015
- master
16+
paths:
17+
- 'accessors-smart/**'
18+
- 'json-smart/**'
19+
- 'json-smart-action/**'
20+
- '.github/workflows/json-smart-formatting.yml'
1121

1222
permissions:
1323
contents: read

.github/workflows/json-smart-unit-tests.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,19 @@ on:
66
- master
77
- update2024
88
- upgrade
9+
paths:
10+
- 'accessors-smart/**'
11+
- 'json-smart/**'
12+
- 'json-smart-action/**'
13+
- '.github/workflows/json-smart-unit-tests.yml'
914
pull_request:
1015
branches:
1116
- master
17+
paths:
18+
- 'accessors-smart/**'
19+
- 'json-smart/**'
20+
- 'json-smart-action/**'
21+
- '.github/workflows/json-smart-unit-tests.yml'
1222

1323
permissions:
1424
contents: read

.github/workflows/security.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,18 @@ name: Security Scanning
33
on:
44
push:
55
branches: [ master, upgrade ]
6+
paths:
7+
- 'accessors-smart/**'
8+
- 'json-smart/**'
9+
- 'json-smart-action/**'
10+
- '.github/workflows/security.yml'
611
pull_request:
712
branches: [ master ]
13+
paths:
14+
- 'accessors-smart/**'
15+
- 'json-smart/**'
16+
- 'json-smart-action/**'
17+
- '.github/workflows/security.yml'
818
schedule:
919
- cron: '0 6 * * 1' # Weekly on Monday at 6am UTC
1020

0 commit comments

Comments
 (0)