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

View file

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