mirror of
https://github.com/ibiqlik/action-yamllint.git
synced 2024-11-21 22:00:57 -05:00
Fix file_or_dir param (#27)
This commit is contained in:
parent
c19bd0523a
commit
bbdd4006fd
2 changed files with 7 additions and 4 deletions
4
.github/workflows/lint.yml
vendored
4
.github/workflows/lint.yml
vendored
|
@ -32,3 +32,7 @@ jobs:
|
|||
with:
|
||||
file_or_dir: test
|
||||
strict: true
|
||||
|
||||
- name: default lint all (continue on error)
|
||||
continue-on-error: true
|
||||
uses: ./
|
||||
|
|
|
@ -24,8 +24,7 @@ fi
|
|||
|
||||
# Enable globstar so ** globs recursively
|
||||
shopt -s globstar
|
||||
# Use the current directory by default
|
||||
options+=("${INPUT_FILE_OR_DIR:-.}")
|
||||
shopt -u globstar
|
||||
|
||||
yamllint "${options[@]}"
|
||||
yamllint "${options[@]}" ${INPUT_FILE_OR_DIR:-.}
|
||||
|
||||
shopt -u globstar
|
||||
|
|
Loading…
Reference in a new issue