Skip to content

Commit

Permalink
Picking it up again
Browse files Browse the repository at this point in the history
  • Loading branch information
ibiqlik committed Oct 7, 2021
1 parent cda5fe5 commit 39c5dac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
```
Expand Down Expand Up @@ -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
Expand Down
7 changes: 4 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash -l
# shellcheck disable=SC2086

echo "======================"
echo "= Linting YAML files ="
Expand Down Expand Up @@ -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

0 comments on commit 39c5dac

Please sign in to comment.