File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ jobs:
157
157
- name : Fetch labels
158
158
id : fetch-labels
159
159
run : |
160
- labels=" $(gh api repos/$OWNER/$REPO_NAME/pulls/$PULL_REQUEST_NUMBER --jq '.labels.[]. name')"
160
+ labels=$(gh api repos/$OWNER/$REPO_NAME/pulls/$PULL_REQUEST_NUMBER --jq '.labels | map(. name) | join(",")')
161
161
echo "Found labels: $labels"
162
162
echo "labels=$labels" >> "$GITHUB_OUTPUT"
163
163
shell : bash
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ jobs:
140
140
- name : Fetch labels
141
141
id : fetch-labels
142
142
run : |
143
- labels=" $(gh api repos/$OWNER/$REPO_NAME/pulls/$PULL_REQUEST_NUMBER --jq '.labels.[]. name')"
143
+ labels=$(gh api repos/$OWNER/$REPO_NAME/pulls/$PULL_REQUEST_NUMBER --jq '.labels | map(. name) | join(",")')
144
144
echo "Found labels: $labels"
145
145
echo "labels=$labels" >> "$GITHUB_OUTPUT"
146
146
shell : bash
You can’t perform that action at this time.
0 commit comments