Skip to content

Commit 0564903

Browse files
chore: add paths filters to GitHub Actions workflows
Agent-Logs-Url: https://github.com/kubernetes-client/javascript/sessions/19776c22-9015-4137-b04f-a1b233095ffa Co-authored-by: brendandburns <5751682+brendandburns@users.noreply.github.com>
1 parent 27b8df2 commit 0564903

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,19 @@ name: 'CodeQL'
1515
on:
1616
push:
1717
branches: [master, main]
18+
paths:
19+
- 'src/**'
20+
- 'package.json'
21+
- 'package-lock.json'
22+
- '.github/workflows/codeql-analysis.yml'
1823
pull_request:
1924
# The branches below must be a subset of the branches above
2025
branches: [master, main]
26+
paths:
27+
- 'src/**'
28+
- 'package.json'
29+
- 'package-lock.json'
30+
- '.github/workflows/codeql-analysis.yml'
2131
schedule:
2232
- cron: '35 14 * * 3'
2333

.github/workflows/deploy-docs.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ on:
33
push:
44
branches:
55
- main
6+
paths:
7+
- 'src/**'
8+
- 'typedoc.json'
9+
- 'package.json'
10+
- 'package-lock.json'
11+
- '.github/workflows/deploy-docs.yml'
612

713
permissions: {}
814

.github/workflows/test.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,26 @@ name: Kubernetes Javascript Client - Validation
33
on:
44
push:
55
branches: [master, main]
6+
paths:
7+
- 'src/**'
8+
- 'testdata/**'
9+
- 'package.json'
10+
- 'package-lock.json'
11+
- 'tsconfig*.json'
12+
- 'eslint.config.js'
13+
- 'version-check.js'
14+
- '.github/workflows/test.yml'
615
pull_request:
716
branches: [master, main]
17+
paths:
18+
- 'src/**'
19+
- 'testdata/**'
20+
- 'package.json'
21+
- 'package-lock.json'
22+
- 'tsconfig*.json'
23+
- 'eslint.config.js'
24+
- 'version-check.js'
25+
- '.github/workflows/test.yml'
826

927
permissions: {}
1028

0 commit comments

Comments
 (0)