Skip to content

Commit 0eec79b

Browse files
committed
fix: resolve YAML syntax error in workflow file
- Simplify PR comment message to avoid multiline string issues - Link to action logs for file details instead of listing in comment
1 parent 7f8ca15 commit 0eec79b

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

.github/workflows/ci-cd.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,7 @@ jobs:
7171
pr_author="${{ github.event.pull_request.user.login }}"
7272
7373
# Create PR comment
74-
comment_body="@$pr_author Go formatting is required for the following files:
75-
76-
\`\`\`
77-
$unformatted
78-
\`\`\`
79-
80-
Please run \`go fmt ./...\` to format your code and push the changes."
81-
82-
gh pr comment ${{ github.event.number }} --body "$comment_body"
74+
gh pr comment ${{ github.event.number }} --body "@$pr_author Go code formatting is required. Please run \`go fmt ./...\` to format your code and push the changes. Check the [action logs](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for details on which files need formatting."
8375
exit 1
8476
else
8577
echo "All Go code is properly formatted"

0 commit comments

Comments
 (0)