From c38eb81906cd3923ed2ec88c33bd32d91ab5e176 Mon Sep 17 00:00:00 2001 From: Ilir Bekteshi Date: Thu, 7 Oct 2021 09:19:20 +0200 Subject: [PATCH] Picking it up again --- README.md | 6 +++--- entrypoint.sh | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) mode change 100644 => 100755 entrypoint.sh diff --git a/README.md b/README.md index 509a887..4a65f3c 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/entrypoint.sh b/entrypoint.sh old mode 100644 new mode 100755 index 3fbbf0f..ef8a894 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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