Skip to content

Commit 08c80e2

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 437c0a9 commit 08c80e2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/check-code-generation-task.yml

Lines changed: 2 additions & 2 deletions
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"

.github/workflows/test-go-task.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ on:
99
push:
1010
paths:
1111
- ".github/workflows/test-go-task.ya?ml"
12-
- "Taskfile.yml"
1312
- "go.mod"
1413
- "go.sum"
14+
- "Taskfile.ya?ml"
1515
- "**.go"
1616
- "**/testdata/**"
1717
pull_request:
1818
paths:
1919
- ".github/workflows/test-go-task.ya?ml"
20-
- "Taskfile.yml"
2120
- "go.mod"
2221
- "go.sum"
22+
- "Taskfile.ya?ml"
2323
- "**.go"
2424
- "**/testdata/**"
2525
workflow_dispatch:

.github/workflows/test-install.yml

Lines changed: 2 additions & 2 deletions
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)