ci: create Artifactview PR comments
This commit is contained in:
parent
9f7b8405a7
commit
85751b35ed
1 changed files with 7 additions and 0 deletions
|
|
@ -28,3 +28,10 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: test
|
name: test
|
||||||
path: target/nextest/ci/junit.xml
|
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 }}}'
|
||||||
|
|
|
||||||
Reference in a new issue