mirror of
https://github.com/ibiqlik/action-yamllint.git
synced 2024-11-27 12:09:31 +01:00
Capture the whole run
This commit is contained in:
parent
c880b49d82
commit
d5318587ea
2 changed files with 5 additions and 6 deletions
|
@ -34,7 +34,10 @@ runs:
|
||||||
using: 'composite'
|
using: 'composite'
|
||||||
steps:
|
steps:
|
||||||
- id: yamllint
|
- id: yamllint
|
||||||
run: ${{ github.action_path }}/entrypoint.sh
|
run: |
|
||||||
|
LOGFILE=yamllint.log
|
||||||
|
${{ github.action_path }}/entrypoint.sh | tee -a $LOGFILE
|
||||||
|
echo "::set-output name=logfile::$(realpath ${LOGFILE})"
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
INPUT_FILE_OR_DIR: ${{ inputs.file_or_dir }}
|
INPUT_FILE_OR_DIR: ${{ inputs.file_or_dir }}
|
||||||
|
|
|
@ -4,8 +4,6 @@ echo "======================"
|
||||||
echo "= Linting YAML files ="
|
echo "= Linting YAML files ="
|
||||||
echo "======================"
|
echo "======================"
|
||||||
|
|
||||||
LOGFILE=yamllint.log
|
|
||||||
|
|
||||||
if [[ -n "$INPUT_CONFIG_FILE" ]]; then
|
if [[ -n "$INPUT_CONFIG_FILE" ]]; then
|
||||||
options+=(-c "$INPUT_CONFIG_FILE")
|
options+=(-c "$INPUT_CONFIG_FILE")
|
||||||
fi
|
fi
|
||||||
|
@ -30,6 +28,4 @@ shopt -s globstar
|
||||||
options+=("${INPUT_FILE_OR_DIR:-.}")
|
options+=("${INPUT_FILE_OR_DIR:-.}")
|
||||||
shopt -u globstar
|
shopt -u globstar
|
||||||
|
|
||||||
yamllint "${options[@]}" | tee -a $LOGFILE
|
yamllint "${options[@]}"
|
||||||
|
|
||||||
echo "::set-output name=logfile::$(realpath ${LOGFILE})"
|
|
||||||
|
|
Loading…
Reference in a new issue