Post url to review screenshots

This commit is contained in:
Henning Dieterichs
2026-02-23 12:33:18 +01:00
committed by Henning Dieterichs
parent bdd6e80b9f
commit e50a372498

View File

@@ -101,10 +101,12 @@ jobs:
CHECK_RUN_ID=$(gh api "repos/${{ github.repository }}/commits/$SHA/check-runs" \
--jq '.check_runs[] | select(.name == "screenshots") | .id')
DETAILS_URL="https://hediet-ghartifactpreview.azurewebsites.net/${{ github.repository }}/run/${{ github.run_id }}/component-explorer/___explorer.html?report=./screenshot-report/report.json"
if [ -n "$CHECK_RUN_ID" ]; then
gh api "repos/${{ github.repository }}/check-runs/$CHECK_RUN_ID" \
-X PATCH --input - <<EOF
{"output":{"title":"$TITLE","summary":"$TITLE"}}
{"details_url":"$DETAILS_URL","output":{"title":"$TITLE","summary":"$TITLE"}}
EOF
fi