Skip to content

Commit

Permalink
Handle excess whitespce in input paths
Browse files Browse the repository at this point in the history
  • Loading branch information
pcolby committed Feb 16, 2024
1 parent 6748819 commit 962483d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ runs:
set -o errexit -o noclobber -o nounset -o pipefail
[[ -z "$(shopt globstar 2> /dev/null)" ]] && echo 'Shell does not support globstar' || shopt -s globstar
: "${SUMMARY_FILE:=$GITHUB_STEP_SUMMARY}"
gawk --file "$GITHUB_ACTION_PATH/summary.gawk" --sandbox -- ${{ inputs.path }} >> "$SUMMARY_FILE"
paths=(${{ inputs.path }}) # Expand globs, and trim whitespce.
gawk --file "$GITHUB_ACTION_PATH/summary.gawk" --sandbox -- "${paths[@]}" >> "$SUMMARY_FILE"
echo "summary-file=$SUMMARY_FILE" >> "$GITHUB_OUTPUT"
shell: bash
env:
Expand Down

0 comments on commit 962483d

Please sign in to comment.