Skip to content

Commit 133f085

Browse files
authored
fix(ci): only trigger builds on code changes (#215)
1 parent b8323e8 commit 133f085

1 file changed

Lines changed: 12 additions & 38 deletions

File tree

.github/workflows/build.yml

Lines changed: 12 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -4,46 +4,20 @@ on:
44
workflow_dispatch:
55
push:
66
branches: [ main ]
7-
paths-ignore:
8-
- '**.md'
9-
- 'docs/**'
10-
- 'assets/**'
11-
- 'schemas/**'
12-
- '.github/ISSUE_TEMPLATE/**'
13-
- '.github/workflows/generate-changelog.yml'
14-
- '.github/workflows/preview-changelog.yml'
15-
- '.github/workflows/contributors.yml'
16-
- '.github/workflows/integration-test*.yml'
17-
- '.idea/**'
18-
- '.claude/**'
19-
- '.gitignore'
20-
- '.commitlintrc.yml'
21-
- 'package.json'
22-
- 'package-lock.json'
23-
- 'LICENSE'
24-
- 'install.sh'
25-
- 'install.ps1'
7+
paths:
8+
- 'src/**'
9+
- 'go.mod'
10+
- 'go.sum'
11+
- '.golangci.yml'
12+
- '.github/workflows/build.yml'
2613
pull_request:
2714
branches: [ main ]
28-
paths-ignore:
29-
- '**.md'
30-
- 'docs/**'
31-
- 'assets/**'
32-
- 'schemas/**'
33-
- '.github/ISSUE_TEMPLATE/**'
34-
- '.github/workflows/generate-changelog.yml'
35-
- '.github/workflows/preview-changelog.yml'
36-
- '.github/workflows/contributors.yml'
37-
- '.github/workflows/integration-test*.yml'
38-
- '.idea/**'
39-
- '.claude/**'
40-
- '.gitignore'
41-
- '.commitlintrc.yml'
42-
- 'package.json'
43-
- 'package-lock.json'
44-
- 'LICENSE'
45-
- 'install.sh'
46-
- 'install.ps1'
15+
paths:
16+
- 'src/**'
17+
- 'go.mod'
18+
- 'go.sum'
19+
- '.golangci.yml'
20+
- '.github/workflows/build.yml'
4721

4822
permissions:
4923
contents: read

0 commit comments

Comments
 (0)