Skip to content

Commit cf8cd41

Browse files
committed
Make "Lint configuration files" workflow path filter 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, 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 33ed11b commit cf8cd41

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/lint-config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ on:
44
push:
55
paths:
66
- ".github/workflows/lint-config.yml"
7-
- "Taskfile.yml"
8-
- ".github/workflows/*.yml"
7+
- ".github/workflows/*.ya?ml"
8+
- "Taskfile.ya?ml"
99
pull_request:
1010
paths:
1111
- ".github/workflows/lint-config.yml"
12-
- "Taskfile.yml"
13-
- ".github/workflows/*.yml"
12+
- ".github/workflows/*.ya?ml"
13+
- "Taskfile.ya?ml"
1414
schedule:
1515
# Run every Tuesday at 03:00 UTC to catch breakage caused by changes to the GitHub Actions workflow schema
1616
- cron: "0 3 * * 2"

0 commit comments

Comments
 (0)