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: lintAllTheThings:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- name: yaml-lint - name: yaml-lint
uses: ibiqlik/action-yamllint@v3 uses: ibiqlik/action-yamllint@v3
with: with:
@ -59,7 +59,7 @@ jobs:
lintAllTheThings: lintAllTheThings:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- name: yaml-lint - name: yaml-lint
uses: ibiqlik/action-yamllint@v3 uses: ibiqlik/action-yamllint@v3
``` ```
@ -92,7 +92,7 @@ jobs:
lintAllTheThings: lintAllTheThings:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- id: yaml-lint - id: yaml-lint
uses: ibiqlik/action-yamllint@v3 uses: ibiqlik/action-yamllint@v3

7
entrypoint.sh Normal file → Executable file
View file

@ -1,4 +1,5 @@
#!/bin/bash -l #!/bin/bash -l
# shellcheck disable=SC2086
echo "======================" echo "======================"
echo "= Linting YAML files =" echo "= Linting YAML files ="
@ -29,10 +30,10 @@ fi
# Enable globstar so ** globs recursively # Enable globstar so ** globs recursively
shopt -s globstar shopt -s globstar
yamllint "${options[@]}" ${INPUT_FILE_OR_DIR:-.} yamllint "${options[@]}" ${INPUT_FILE_OR_DIR:-.} | tee -a "$LOGFILE"
# | tee -a "$LOGFILE"
exitcode=$? exitcode=$?
shopt -u globstar shopt -u globstar
echo "::set-output name=logfile::$(realpath ${LOGFILE})"
exit $exitcode