Fix file_or_dir param (#27)

This commit is contained in:
Ilir Bekteshi 2021-08-18 15:23:29 +02:00 committed by GitHub
parent c19bd0523a
commit bbdd4006fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 4 deletions

View file

@ -32,3 +32,7 @@ jobs:
with:
file_or_dir: test
strict: true
- name: default lint all (continue on error)
continue-on-error: true
uses: ./

View file

@ -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