Skip to content

Commit

Permalink
improve example to match any workflow files in actionlint.yaml (#481)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Nov 22, 2024
1 parent 97871a5 commit 6433667
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ paths:
ignore: [vvv]
.github/workflows/**/x.yaml:
ignore: [www]
.github/workflows/**/*.{yml,yaml}:
ignore: [ttt]
`

var cfg Config
Expand Down Expand Up @@ -197,6 +199,8 @@ paths:
{".github/workflows/a/b/x.yaml", "www", true},
{".github/workflows/a/b/c/x.yaml", "www", true},
{".github/workflows/a/b.yaml", "this is not ignored", false},
{".github/workflows/a.yml", "xxx", false},
{".github/workflows/a.yml", "ttt", true},
}

for _, tc := range tests {
Expand Down
2 changes: 1 addition & 1 deletion docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ config-variables:
paths:
# Glob pattern relative to the repository root for matching files. The path separator is always '/'.
# This example configures any YAML file under the '.github/workflows/' directory.
.github/workflows/**/*.yaml:
.github/workflows/**/*.{yml,yaml}:
# List of regular expressions to filter errors by the error messages.
ignore:
# Ignore the specific error from shellcheck
Expand Down

0 comments on commit 6433667

Please sign in to comment.