Skip to content

Commit 8cd36e1

Browse files
committed
Make workflow paths filters handle either YAML extension
There are two file extensions in common use for YAML files: `.yaml` and `.yml`. Although this project uses `.yml` exclusively for YAML files, this is a standardized workflow 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 496aa60 commit 8cd36e1

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ env:
1010
on:
1111
push:
1212
paths:
13-
- ".github/workflows/test-go-integration-task.yml"
14-
- "Taskfile.yml"
13+
- ".github/workflows/test-go-integration-task.ya?ml"
14+
- "Taskfile.ya?ml"
1515
- "**.go"
1616
- "go.mod"
1717
- "go.sum"
@@ -20,8 +20,8 @@ on:
2020
- "test/**"
2121
pull_request:
2222
paths:
23-
- ".github/workflows/test-go-integration-task.yml"
24-
- "Taskfile.yml"
23+
- ".github/workflows/test-go-integration-task.ya?ml"
24+
- "Taskfile.ya?ml"
2525
- "**.go"
2626
- "go.mod"
2727
- "go.sum"

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ env:
88
on:
99
push:
1010
paths:
11-
- ".github/workflows/test-go-task.yml"
11+
- ".github/workflows/test-go-task.ya?ml"
1212
- "go.mod"
1313
- "go.sum"
14-
- "Taskfile.yml"
14+
- "Taskfile.ya?ml"
1515
- "**/testdata/**"
1616
- "**.go"
1717
pull_request:
1818
paths:
19-
- ".github/workflows/test-go-task.yml"
19+
- ".github/workflows/test-go-task.ya?ml"
2020
- "go.mod"
2121
- "go.sum"
22-
- "Taskfile.yml"
22+
- "Taskfile.ya?ml"
2323
- "**/testdata/**"
2424
- "**.go"
2525
workflow_dispatch:

0 commit comments

Comments
 (0)