Skip to content

Commit 9c34e7a

Browse files
committed
Make workflow path filters handle either YAML file extension
There are two file extensions in common use for YAML files: `.yaml` and `.yml`. Although this project uses `.yml` exclusively for YAML files, standardized "template" workflows which might be applied to projects that have established the use of the other extension. It will be most flexible if it supports both.
1 parent 21c8fe8 commit 9c34e7a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Diff for: .github/workflows/check-code-generation-task.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ on:
88
push:
99
paths:
1010
- ".github/workflows/check-code-generation-task.ya?ml"
11-
- "Taskfile.yml"
11+
- "Taskfile.ya?ml"
1212
- "go.mod"
1313
- "go.sum"
1414
- "**.go"
1515
- "etc/schemas/**/*.json"
1616
pull_request:
1717
paths:
1818
- ".github/workflows/check-code-generation-task.ya?ml"
19-
- "Taskfile.yml"
19+
- "Taskfile.ya?ml"
2020
- "go.mod"
2121
- "go.sum"
2222
- "**.go"

Diff for: .github/workflows/test-go-task.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ on:
1010
push:
1111
paths:
1212
- ".github/workflows/test-go-task.ya?ml"
13-
- "Taskfile.yml"
1413
- "go.mod"
1514
- "go.sum"
15+
- "Taskfile.ya?ml"
1616
- "**.go"
1717
- "**/testdata/**"
1818
pull_request:
1919
paths:
2020
- ".github/workflows/test-go-task.ya?ml"
21-
- "Taskfile.yml"
2221
- "go.mod"
2322
- "go.sum"
23+
- "Taskfile.ya?ml"
2424
- "**.go"
2525
- "**/testdata/**"
2626
workflow_dispatch:

Diff for: .github/workflows/test-install.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ name: Test install script
33
on:
44
push:
55
paths:
6-
- ".github/workflows/test-install.yml"
6+
- ".github/workflows/test-install.ya?ml"
77
- "etc/install.sh"
88
pull_request:
99
paths:
10-
- ".github/workflows/test-install.yml"
10+
- ".github/workflows/test-install.ya?ml"
1111
- "etc/install.sh"
1212
schedule:
1313
# Run every day at 03:00 UTC to catch breakage caused by external events

0 commit comments

Comments
 (0)