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