Skip to content

Commit d699dbb

Browse files
committed
Gate workflows behind code changes
1 parent f98cf36 commit d699dbb

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Diff for: .github/workflows/lint.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ on:
44
push:
55
branches:
66
- main
7+
paths:
8+
- "**.go"
9+
- ".github/workflows/lint.yaml"
710
pull_request:
11+
paths:
12+
- "**.go"
13+
- ".github/workflows/lint.yaml"
814
workflow_dispatch:
915

1016
# Cancel in-progress runs for pull requests when developers push

Diff for: .github/workflows/test.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ on:
44
push:
55
branches:
66
- main
7+
paths:
8+
- "**.go"
9+
- ".github/workflows/test.yaml"
710
pull_request:
11+
paths:
12+
- "**.go"
13+
- ".github/workflows/test.yaml"
814
workflow_dispatch:
915

1016
# Cancel in-progress runs for pull requests when developers push

0 commit comments

Comments
 (0)