Skip to content

Commit 5ca2821

Browse files
committed
ci: Optimize GitHub workflow event paths
- Exclude specific files and directories from push and pull request events in workflows - Add paths to be ignored during push in release workflow
1 parent 0ffa089 commit 5ca2821

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

.github/workflows/build.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,19 @@ on:
44
push:
55
branches:
66
- main
7+
paths-ignore:
8+
- 'docs/**'
9+
- '*.md'
10+
- LICENSE
11+
- '.github/**'
712
pull_request:
813
branches:
914
- main
15+
paths-ignore:
16+
- 'docs/**'
17+
- '*.md'
18+
- LICENSE
19+
- '.github/**'
1020
workflow_dispatch:
1121

1222
jobs:

.github/workflows/publish-latest-image.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
push:
55
branches:
66
- main
7+
paths-ignore:
8+
- 'docs/**'
9+
- '*.md'
10+
- LICENSE
11+
- '.github/**'
712
workflow_dispatch:
813

914
permissions: write-all

.github/workflows/release.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
push:
55
branches:
66
- main
7+
paths-ignore:
8+
- 'docs/**'
9+
- '*.md'
10+
- LICENSE
11+
- '.github/**'
712

813
permissions: write-all
914

0 commit comments

Comments
 (0)