Picking it up again

This commit is contained in:
Ilir Bekteshi 2021-10-07 09:19:20 +02:00
parent cda5fe54c7
commit c38eb81906
2 changed files with 7 additions and 6 deletions

View file

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