Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add spaces between extra arguments to prevent errors #125

Merged
merged 2 commits into from
Aug 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,31 +35,31 @@ runs:
EXTRA_ARGS=""

if [[ -n '${{ inputs.color }}' ]]; then
EXTRA_ARGS+="-color=${{ inputs.color }}"
EXTRA_ARGS="${EXTRA_ARGS} -color=${{ inputs.color }}"
fi

if [[ -n '${{ inputs.green }}' ]]; then
EXTRA_ARGS+="-green=${{ inputs.green }}"
EXTRA_ARGS="${EXTRA_ARGS} -green=${{ inputs.green }}"
fi

if [[ -n '${{ inputs.target }}' ]]; then
EXTRA_ARGS+="-target=${{ inputs.target }}"
EXTRA_ARGS="${EXTRA_ARGS} -target=${{ inputs.target }}"
fi

if [[ -n '${{ inputs.text }}' ]]; then
EXTRA_ARGS+="-text=${{ inputs.text }}"
EXTRA_ARGS="${EXTRA_ARGS} -text=${{ inputs.text }}"
fi

if [[ -n '${{ inputs.value }}' ]]; then
EXTRA_ARGS+="-value=${{ inputs.value }}"
EXTRA_ARGS="${EXTRA_ARGS} -value=${{ inputs.value }}"
fi

if [[ -n '${{ inputs.yellow }}' ]]; then
EXTRA_ARGS+="-yellow=${{ inputs.yellow }}"
EXTRA_ARGS="${EXTRA_ARGS} -yellow=${{ inputs.yellow }}"
fi

if [[ -n '${{ inputs.link }}' ]]; then
EXTRA_ARGS+="-link=${{ inputs.link }}"
EXTRA_ARGS="${EXTRA_ARGS} -link=${{ inputs.link }}"
fi

TEMP_DIR=$(mktemp -d)
Expand Down
Loading