mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-13 16:38:57 +08:00
Only run actionlint on github workflow files (#5154)
* Add test to fail on dependabot.yml * Run only on .github/workflows
This commit is contained in:
1 parent
a1ff838e9e
commit
5c8ca023e6
2 files changed
+8
-3
No files matched your search
@@ -5,8 +5,8 @@ call ale#Set('yaml_actionlint_executable', 'actionlint')
|
||||
call ale#Set('yaml_actionlint_options', '')
|
||||
|
||||
function! ale_linters#yaml#actionlint#GetCommand(buffer) abort
|
||||
" Only execute actionlint on YAML files in /.github/ paths.
|
||||
if expand('#' . a:buffer . ':p') !~# '\v[/\\]\.github[/\\]'
|
||||
" Only execute actionlint on YAML files in /.github/workflows/ paths.
|
||||
if expand('#' . a:buffer . ':p') !~# '\v[/\\]\.github[/\\]workflows[/\\]'
|
||||
return ''
|
||||
endif
|
||||
|
||||
|
||||
Reference in new issue
Block a user