1
0
mirror of https://github.com/simple-icons/simple-icons.git synced 2024-11-16 00:59:07 +02:00

Fix get-labels action when returning multiple labels (#9849)

This commit is contained in:
Álvaro Mondéjar 2023-11-12 22:12:59 +01:00 committed by GitHub
parent 5794f411a1
commit 54b2330b7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,5 +16,5 @@ runs:
- id: get-labels
shell: sh
run: |
labels="$(gh api 'repos/simple-icons/simple-icons/issues/${{ inputs.issue_number }}' --jq '.labels.[].name')"
labels="$(gh api 'repos/simple-icons/simple-icons/issues/${{ inputs.issue_number }}' --jq '.labels.[].name' | tr '\n' ',')"
echo "labels=$labels" >> $GITHUB_OUTPUT