From 4aceff6c6f93c9c95ffb16b12c3e0400540dd3e2 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Sat, 28 Jun 2025 11:10:56 +0300 Subject: [PATCH] fix(ci): pr-build summarization step (#27) --- .github/workflows/pr-build.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml index 24179b5..f965452 100644 --- a/.github/workflows/pr-build.yml +++ b/.github/workflows/pr-build.yml @@ -132,7 +132,7 @@ jobs: - name: Upload build result uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: - name: build-results-${{ steps.resultfile.outputs.filename }} + name: build-results-${{ steps.resultfile.outputs.filename }} path: results/ overwrite: true if-no-files-found: warn @@ -151,22 +151,27 @@ jobs: if: github.event_name == 'pull_request' steps: - name: Download all build results + id: dl uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 with: - name: build-results-* path: results - name: Summarize results id: summarize shell: bash run: | + set -x { echo "## Build Matrix Results" echo "" echo "| PHP Version | Architecture | Status | Duration (s) | Image Size (MB) | Base Image | Cache Used |" echo "|-------------|--------------|---------|--------------|-----------------|------------|------------|" } > comment.md - for f in results/*.json; do + for f in ${{ steps.dl.outputs.download-path }}/**/*.json; do + echo "debug" + cat "$f" + echo "/debug" + php=$(jq -r .php "$f") arch=$(jq -r .arch "$f") status=$(jq -r .status "$f")