Merge remote-tracking branch 'origin/master' into log-output

This commit is contained in:
Ilir Bekteshi 2021-08-19 08:46:59 +02:00
commit 30f9249db0
2 changed files with 8 additions and 4 deletions

View file

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

7
entrypoint.sh Executable file → Normal file
View file

@ -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})"