mirror of
https://github.com/ivuorinen/docker-php-with-imagick-multi.git
synced 2026-01-26 11:34:03 +00:00
fix(ci): pr-build summarization step (#27)
This commit is contained in:
11
.github/workflows/pr-build.yml
vendored
11
.github/workflows/pr-build.yml
vendored
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user