Skip to content

Commit 6433667

Browse files
committed
improve example to match any workflow files in actionlint.yaml (#481)
1 parent 97871a5 commit 6433667

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

config_test.go

+4
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ paths:
165165
ignore: [vvv]
166166
.github/workflows/**/x.yaml:
167167
ignore: [www]
168+
.github/workflows/**/*.{yml,yaml}:
169+
ignore: [ttt]
168170
`
169171

170172
var cfg Config
@@ -197,6 +199,8 @@ paths:
197199
{".github/workflows/a/b/x.yaml", "www", true},
198200
{".github/workflows/a/b/c/x.yaml", "www", true},
199201
{".github/workflows/a/b.yaml", "this is not ignored", false},
202+
{".github/workflows/a.yml", "xxx", false},
203+
{".github/workflows/a.yml", "ttt", true},
200204
}
201205

202206
for _, tc := range tests {

docs/config.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ config-variables:
3232
paths:
3333
# Glob pattern relative to the repository root for matching files. The path separator is always '/'.
3434
# This example configures any YAML file under the '.github/workflows/' directory.
35-
.github/workflows/**/*.yaml:
35+
.github/workflows/**/*.{yml,yaml}:
3636
# List of regular expressions to filter errors by the error messages.
3737
ignore:
3838
# Ignore the specific error from shellcheck

0 commit comments

Comments
 (0)