From bbdd4006fdfc0f187f2b3b5cbc578127f976bba3 Mon Sep 17 00:00:00 2001 From: Ilir Bekteshi Date: Wed, 18 Aug 2021 15:23:29 +0200 Subject: [PATCH] Fix file_or_dir param (#27) --- .github/workflows/lint.yml | 4 ++++ entrypoint.sh | 7 +++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e8afeca..2dd2698 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -32,3 +32,7 @@ jobs: with: file_or_dir: test strict: true + + - name: default lint all (continue on error) + continue-on-error: true + uses: ./ diff --git a/entrypoint.sh b/entrypoint.sh index 7ae3616..a9205ad 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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