mirror of
https://github.com/ibiqlik/action-yamllint.git
synced 2024-11-23 18:19:33 +01:00
Merge remote-tracking branch 'origin/master' into log-output
This commit is contained in:
commit
30f9249db0
2 changed files with 8 additions and 4 deletions
5
.github/workflows/lint.yml
vendored
5
.github/workflows/lint.yml
vendored
|
@ -37,6 +37,11 @@ jobs:
|
||||||
file_or_dir: test
|
file_or_dir: test
|
||||||
strict: true
|
strict: true
|
||||||
|
|
||||||
|
- id: default-lint-all
|
||||||
|
name: default lint all (continue on error)
|
||||||
|
continue-on-error: true
|
||||||
|
uses: ./
|
||||||
|
|
||||||
- id: print-output
|
- id: print-output
|
||||||
name: Print output
|
name: Print output
|
||||||
run: |
|
run: |
|
||||||
|
|
7
entrypoint.sh
Executable file → Normal file
7
entrypoint.sh
Executable file → Normal file
|
@ -28,10 +28,9 @@ fi
|
||||||
|
|
||||||
# Enable globstar so ** globs recursively
|
# Enable globstar so ** globs recursively
|
||||||
shopt -s globstar
|
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
|
shopt -u globstar
|
||||||
|
|
||||||
yamllint "${options[@]}" | tee -a "$LOGFILE"
|
|
||||||
|
|
||||||
echo "::set-output name=logfile::$(realpath ${LOGFILE})"
|
echo "::set-output name=logfile::$(realpath ${LOGFILE})"
|
||||||
|
|
Loading…
Reference in a new issue