mirror of
https://github.com/ivuorinen/docker-php-with-imagick-multi.git
synced 2026-02-10 12:47:18 +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
|
- name: Upload build result
|
||||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||||
with:
|
with:
|
||||||
name: build-results-${{ steps.resultfile.outputs.filename }}
|
name: build-results-${{ steps.resultfile.outputs.filename }}
|
||||||
path: results/
|
path: results/
|
||||||
overwrite: true
|
overwrite: true
|
||||||
if-no-files-found: warn
|
if-no-files-found: warn
|
||||||
@@ -151,22 +151,27 @@ jobs:
|
|||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
steps:
|
steps:
|
||||||
- name: Download all build results
|
- name: Download all build results
|
||||||
|
id: dl
|
||||||
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||||
with:
|
with:
|
||||||
name: build-results-*
|
|
||||||
path: results
|
path: results
|
||||||
|
|
||||||
- name: Summarize results
|
- name: Summarize results
|
||||||
id: summarize
|
id: summarize
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
set -x
|
||||||
{
|
{
|
||||||
echo "## Build Matrix Results"
|
echo "## Build Matrix Results"
|
||||||
echo ""
|
echo ""
|
||||||
echo "| PHP Version | Architecture | Status | Duration (s) | Image Size (MB) | Base Image | Cache Used |"
|
echo "| PHP Version | Architecture | Status | Duration (s) | Image Size (MB) | Base Image | Cache Used |"
|
||||||
echo "|-------------|--------------|---------|--------------|-----------------|------------|------------|"
|
echo "|-------------|--------------|---------|--------------|-----------------|------------|------------|"
|
||||||
} > comment.md
|
} > 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")
|
php=$(jq -r .php "$f")
|
||||||
arch=$(jq -r .arch "$f")
|
arch=$(jq -r .arch "$f")
|
||||||
status=$(jq -r .status "$f")
|
status=$(jq -r .status "$f")
|
||||||
|
|||||||
Reference in New Issue
Block a user