Capture the whole run

This commit is contained in:
Ilir Bekteshi 2021-08-12 11:46:16 +02:00
parent c880b49d82
commit d5318587ea
2 changed files with 5 additions and 6 deletions

View file

@ -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 }}

View file

@ -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[@]}"