Skip to content

Commit

Permalink
fix whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-evans committed Apr 5, 2023
1 parent 1540750 commit 351240d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions action.yml
Expand Up @@ -43,9 +43,8 @@ runs:
# Convert labels to comma separated list
if [ -n "${{ inputs.labels }}" ]; then
labels=$(echo "${{ inputs.labels }}" | tr '\n' ',' | sed 's/,$//')
if [[ "${labels: -1}" == "," ]]; then
labels="${labels:0:${#labels}-1}"
fi
# Remove trailing comma and whitespace
labels=$(echo $labels | sed 's/,$//' | sed 's/\s//g')
echo labels=$labels >> $GITHUB_OUTPUT
fi
Expand Down

0 comments on commit 351240d

Please sign in to comment.