diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f65a1cb..9eeae38 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -37,6 +37,11 @@ jobs: file_or_dir: test strict: true + - id: default-lint-all + name: default lint all (continue on error) + continue-on-error: true + uses: ./ + - id: print-output name: Print output run: | diff --git a/entrypoint.sh b/entrypoint.sh old mode 100755 new mode 100644 index 22f22f8..1ab7fc7 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -28,10 +28,9 @@ fi # Enable globstar so ** globs recursively shopt -s globstar -# Use the current directory by default -options+=("${INPUT_FILE_OR_DIR:-.}") + +yamllint "${options[@]}" ${INPUT_FILE_OR_DIR:-.} | tee -a "$LOGFILE" + shopt -u globstar -yamllint "${options[@]}" | tee -a "$LOGFILE" - echo "::set-output name=logfile::$(realpath ${LOGFILE})"