File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed
Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -102,23 +102,3 @@ jobs:
102102 echo '```yaml' >> report.md
103103 cat apisix-ingress-controller-conformance-report.yaml >> report.md
104104 echo '```' >> report.md
105-
106- - name : Report Conformance Test Result to PR Comment
107- if : ${{ github.event_name == 'pull_request' }}
108- env :
109- GH_TOKEN : ${{ github.token }}
110- run : |
111- # Check if comment already exists
112- COMMENT_ID=$(gh api "repos/${{ github.repository }}/issues/${{ github.event.number }}/comments" --jq '.[] | select(.body | contains("# conformance test report")) | .id' | head -1)
113-
114- if [ -n "$COMMENT_ID" ]; then
115- # Update existing comment
116- gh api "repos/${{ github.repository }}/issues/comments/$COMMENT_ID" \
117- --method PATCH \
118- --field body="$(cat report.md)"
119- else
120- # Create new comment
121- gh api "repos/${{ github.repository }}/issues/${{ github.event.number }}/comments" \
122- --method POST \
123- --field body="$(cat report.md)"
124- fi
You can’t perform that action at this time.
0 commit comments