Skip to content

Commit

Permalink
Fix file_or_dir param (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibiqlik committed Aug 18, 2021
1 parent c19bd05 commit bbdd400
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ jobs:
with:
file_or_dir: test
strict: true

- name: default lint all (continue on error)
continue-on-error: true
uses: ./
7 changes: 3 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit bbdd400

Please sign in to comment.