ci: create Artifactview PR comments

This commit is contained in:
ThetaDev 2024-06-27 03:14:27 +02:00
parent 9f7b8405a7
commit 85751b35ed
No known key found for this signature in database
GPG key ID: E319D3C5148D65B6

View file

@ -28,3 +28,10 @@ jobs:
with:
name: test
path: target/nextest/ci/junit.xml
- name: 🔗 Artifactview PR comment
if: ${{ always() && github.event_name == 'pull_request' }}
run: |
if [[ "$GITEA_ACTIONS" == "true" ]]; then RUN_NUMBER="$GITHUB_RUN_NUMBER"; else RUN_NUMBER="$GITHUB_RUN_ID"; fi
curl -SsL --fail-with-body -w "\n" -X POST https://av.thetadev.de/.well-known/api/prComment -H "Content-Type: application/json" \
--data '{"url": "'"$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$RUN_NUMBER"'", "pr": ${{ github.event.number }}}'