Skip to content

Commit

Permalink
keywords - 4
Browse files Browse the repository at this point in the history
  • Loading branch information
ric-evans authored Nov 15, 2024
1 parent 6e94c4d commit f2003ce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,10 @@ runs:
run: |
CLEANED_KEYWORDS="${{ inputs.keywords }}"
# Wrap each line in quotes if not already quoted, then replace newlines with spaces
CLEANED_KEYWORDS=$(printf "%s" "${{ inputs.keywords }}" | sed 's/^[^"].*[^"]$/"&"/' | tr '\n' ' ')
CLEANED_KEYWORDS=$(sed 's/^[^"].*[^"]$/"&"/' <<EOF | tr '\n' ' '
${{ inputs.keywords }}
EOF
)
echo "$CLEANED_KEYWORDS"
echo "CLEANED_KEYWORDS=$CLEANED_KEYWORDS" >> $GITHUB_ENV
shell: bash
Expand Down

0 comments on commit f2003ce

Please sign in to comment.