mirror of
https://github.com/ibiqlik/action-yamllint.git
synced 2024-11-23 18:19:33 +01:00
"revert" capture whole run
This commit is contained in:
parent
5802e0a5a8
commit
b8a648b6e1
2 changed files with 9 additions and 4 deletions
|
@ -35,9 +35,8 @@ runs:
|
||||||
steps:
|
steps:
|
||||||
- id: yamllint
|
- id: yamllint
|
||||||
run: |
|
run: |
|
||||||
LOGFILE=yamllint.log
|
export LOGFILE=$(mktemp yamllint-XXXXXX)
|
||||||
${{ github.action_path }}/entrypoint.sh | tee -a $LOGFILE
|
${{ github.action_path }}/entrypoint.sh
|
||||||
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,6 +4,10 @@ echo "======================"
|
||||||
echo "= Linting YAML files ="
|
echo "= Linting YAML files ="
|
||||||
echo "======================"
|
echo "======================"
|
||||||
|
|
||||||
|
if [[ -z "$LOGFILE" ]]; then
|
||||||
|
LOGFILE=$(mktemp yamllint-XXXXXX)
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -n "$INPUT_CONFIG_FILE" ]]; then
|
if [[ -n "$INPUT_CONFIG_FILE" ]]; then
|
||||||
options+=(-c "$INPUT_CONFIG_FILE")
|
options+=(-c "$INPUT_CONFIG_FILE")
|
||||||
fi
|
fi
|
||||||
|
@ -28,4 +32,6 @@ shopt -s globstar
|
||||||
options+=("${INPUT_FILE_OR_DIR:-.}")
|
options+=("${INPUT_FILE_OR_DIR:-.}")
|
||||||
shopt -u globstar
|
shopt -u globstar
|
||||||
|
|
||||||
yamllint "${options[@]}"
|
yamllint "${options[@]}" | tee -a "$LOGFILE"
|
||||||
|
|
||||||
|
echo "::set-output name=logfile::$(realpath ${LOGFILE})"
|
||||||
|
|
Loading…
Reference in a new issue