From 3548983c67e1762c87ec243577102f5d7bc48dc5 Mon Sep 17 00:00:00 2001 From: Ludy87 Date: Wed, 3 Sep 2025 07:22:01 +0200 Subject: [PATCH] Update frontend-licenses-update.yml --- .../workflows/frontend-licenses-update.yml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/frontend-licenses-update.yml b/.github/workflows/frontend-licenses-update.yml index 59cde2c50..1db0ef3e3 100644 --- a/.github/workflows/frontend-licenses-update.yml +++ b/.github/workflows/frontend-licenses-update.yml @@ -145,6 +145,26 @@ jobs: }); } + - name: Summarize results (fork PRs) + if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == true + run: | + { + echo "## Frontend License Check" + echo "" + if [ "${LICENSE_WARNINGS_EXIST}" = "true" ]; then + echo "❌ **Failed** – incompatible or unknown licenses found." + if [ -f "frontend/src/assets/license-warnings.json" ]; then + echo "" + echo "### Warnings" + jq -r '.warnings[] | "- \(.message)"' frontend/src/assets/license-warnings.json || true + fi + else + echo "✅ **Passed** – no license warnings detected." + fi + echo "" + echo "_Note: This is a fork PR. PR comments are disabled; use this summary._" + } >> "$GITHUB_STEP_SUMMARY" + - name: Comment on PR - License Check Results if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1