Skip to content

Commit be47761

Browse files
committed
fix: Emit compact JSON to avoid newline issues
1 parent 309ed1c commit be47761

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,9 @@ runs:
7878
id: get_issues_from_filings
7979
shell: bash
8080
run: |
81-
# Get issues with 'state: open' from Filing objects
82-
echo "issues=$(echo '${{ steps.file.outputs.filings }}' | jq '[.[] | select(.issue.state == "open") | .issue]')" >> $GITHUB_OUTPUT
81+
# Extract open issues from Filing objects and output as a single-line JSON array
82+
issues=$(jq -c '[.[] | select(.issue.state == "open") | .issue]' <<< '${{ steps.file.outputs.filings }}')
83+
echo "issues=$issues" >> "$GITHUB_OUTPUT"
8384
- if: ${{ inputs.skip_copilot_assignment != 'true' }}
8485
name: Fix
8586
id: fix

0 commit comments

Comments
 (0)