Skip to content

Commit

Permalink
formating feature failure comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jbigel committed Aug 1, 2024
1 parent 7e908fa commit 707615a
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/lint-and-sample-feature-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,20 @@ jobs:
p
}' sampleRunOutput.txt > failure_reason.txt)
cat failure_reason.txt
echo "PR_COMMENT=Hello feature Run failed :: $(cat failure_reason.txt)" >> "$GITHUB_OUTPUT"
{
echo 'PR_COMMENT<<EOF'
echo -n 'Hello feature run failed with the following errors:\n'
echo -n '\n'
echo -n '```\n'
awk '{gsub(/"/, "\\\""); printf "%s\\n", $0}' failure_reason.txt
echo -n '```\n'
echo -n '\n'
echo -n 'For more information on our testing policies, please see our [Testing-Guide](../tree/dev/Testing-Guide.md).\n'
echo '\n'
echo 'EOF'
} >> "$GITHUB_OUTPUT"
exit 1
else
echo "Hello feature run succeeded."
fi
Expand Down

0 comments on commit 707615a

Please sign in to comment.