Skip to content

Commit 7e4de97

Browse files
maxprilutskiyclaude
andcommitted
fix: autolabeler workflow multiline output handling
Fix GitHub Actions workflow failure by properly handling multiline output in issue title and body using heredoc syntax instead of direct assignment. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 2edf915 commit 7e4de97

1 file changed

Lines changed: 20 additions & 4 deletions

File tree

.github/workflows/claude-issue-autolabel.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,29 @@ jobs:
3535
if [[ "${{ github.event_name }}" == "workflow_dispatch" && -n "${{ github.event.inputs.issue_number }}" ]]; then
3636
echo "issue_number=${{ github.event.inputs.issue_number }}" >> $GITHUB_OUTPUT
3737
issue_data=$(gh issue view ${{ github.event.inputs.issue_number }} --json title,body,author)
38-
echo "issue_title=$(echo "$issue_data" | jq -r '.title')" >> $GITHUB_OUTPUT
39-
echo "issue_body=$(echo "$issue_data" | jq -r '.body')" >> $GITHUB_OUTPUT
38+
{
39+
echo "issue_title<<EOF"
40+
echo "$issue_data" | jq -r '.title'
41+
echo "EOF"
42+
} >> $GITHUB_OUTPUT
43+
{
44+
echo "issue_body<<EOF"
45+
echo "$issue_data" | jq -r '.body'
46+
echo "EOF"
47+
} >> $GITHUB_OUTPUT
4048
echo "issue_author=$(echo "$issue_data" | jq -r '.author.login')" >> $GITHUB_OUTPUT
4149
else
4250
echo "issue_number=${{ github.event.issue.number }}" >> $GITHUB_OUTPUT
43-
echo "issue_title=${{ github.event.issue.title }}" >> $GITHUB_OUTPUT
44-
echo "issue_body=${{ github.event.issue.body }}" >> $GITHUB_OUTPUT
51+
{
52+
echo "issue_title<<EOF"
53+
echo "${{ github.event.issue.title }}"
54+
echo "EOF"
55+
} >> $GITHUB_OUTPUT
56+
{
57+
echo "issue_body<<EOF"
58+
echo "${{ github.event.issue.body }}"
59+
echo "EOF"
60+
} >> $GITHUB_OUTPUT
4561
echo "issue_author=${{ github.event.issue.user.login }}" >> $GITHUB_OUTPUT
4662
fi
4763
env:

0 commit comments

Comments
 (0)