mirror of
https://github.com/ibiqlik/action-yamllint.git
synced 2024-11-29 01:21:02 -05: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'
|
||||
steps:
|
||||
- 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
|
||||
env:
|
||||
INPUT_FILE_OR_DIR: ${{ inputs.file_or_dir }}
|
||||
|
|
|
@ -4,8 +4,6 @@ echo "======================"
|
|||
echo "= Linting YAML files ="
|
||||
echo "======================"
|
||||
|
||||
LOGFILE=yamllint.log
|
||||
|
||||
if [[ -n "$INPUT_CONFIG_FILE" ]]; then
|
||||
options+=(-c "$INPUT_CONFIG_FILE")
|
||||
fi
|
||||
|
@ -30,6 +28,4 @@ shopt -s globstar
|
|||
options+=("${INPUT_FILE_OR_DIR:-.}")
|
||||
shopt -u globstar
|
||||
|
||||
yamllint "${options[@]}" | tee -a $LOGFILE
|
||||
|
||||
echo "::set-output name=logfile::$(realpath ${LOGFILE})"
|
||||
yamllint "${options[@]}"
|
||||
|
|
Loading…
Reference in a new issue