ci: Don't print curl command output in server-build

This commit is contained in:
Shrikant Sharat Kandula 2024-02-26 20:18:24 +05:30 committed by GitHub
parent b5e9ce8718
commit 8677240da6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -190,9 +190,11 @@ jobs:
)" )"
echo "$content" >> "$GITHUB_STEP_SUMMARY" echo "$content" >> "$GITHUB_STEP_SUMMARY"
# Add a comment to the PR with the list of failed tests. # Add a comment to the PR with the list of failed tests.
curl --header "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ curl --silent --show-error \
--header "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
--data "$(jq -n --arg body "$content" '$ARGS.named')" \ --data "$(jq -n --arg body "$content" '$ARGS.named')" \
"https://api.github.com/repos/$GITHUB_REPOSITORY/issues/${{ inputs.pr }}/comments" "https://api.github.com/repos/$GITHUB_REPOSITORY/issues/${{ inputs.pr }}/comments" \
> /dev/null
fi fi
exit 1 exit 1
fi fi