mirror of
https://github.com/ibiqlik/action-yamllint.git
synced 2024-11-21 22:00:57 -05:00
Picking it up again
This commit is contained in:
parent
cda5fe54c7
commit
c38eb81906
2 changed files with 7 additions and 6 deletions
|
@ -41,7 +41,7 @@ jobs:
|
|||
lintAllTheThings:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/checkout@v2
|
||||
- name: yaml-lint
|
||||
uses: ibiqlik/action-yamllint@v3
|
||||
with:
|
||||
|
@ -59,7 +59,7 @@ jobs:
|
|||
lintAllTheThings:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/checkout@v2
|
||||
- name: yaml-lint
|
||||
uses: ibiqlik/action-yamllint@v3
|
||||
```
|
||||
|
@ -92,7 +92,7 @@ jobs:
|
|||
lintAllTheThings:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/checkout@v2
|
||||
- id: yaml-lint
|
||||
uses: ibiqlik/action-yamllint@v3
|
||||
|
||||
|
|
7
entrypoint.sh
Normal file → Executable file
7
entrypoint.sh
Normal file → Executable file
|
@ -1,4 +1,5 @@
|
|||
#!/bin/bash -l
|
||||
# shellcheck disable=SC2086
|
||||
|
||||
echo "======================"
|
||||
echo "= Linting YAML files ="
|
||||
|
@ -29,10 +30,10 @@ fi
|
|||
# Enable globstar so ** globs recursively
|
||||
shopt -s globstar
|
||||
|
||||
yamllint "${options[@]}" ${INPUT_FILE_OR_DIR:-.}
|
||||
# | tee -a "$LOGFILE"
|
||||
|
||||
yamllint "${options[@]}" ${INPUT_FILE_OR_DIR:-.} | tee -a "$LOGFILE"
|
||||
exitcode=$?
|
||||
|
||||
shopt -u globstar
|
||||
echo "::set-output name=logfile::$(realpath ${LOGFILE})"
|
||||
|
||||
exit $exitcode
|
||||
|
|
Loading…
Reference in a new issue