feat: include systems without rebuilds in report

This commit is contained in:
Defelo 2025-07-17 12:13:29 +02:00
commit b029859d6d
No known key found for this signature in database
GPG key ID: 2A05272471204DD3

View file

@ -204,21 +204,26 @@ jobs:
- name: generate report
id: report
env:
OS: ${{ runner.os }}
run: |
if [[ -s fetch_cmd ]]; then
cat fetch_cmd
echo fetch_cmd_${{ matrix.system }}=$(base64 -w0 fetch_cmd) >> "$GITHUB_OUTPUT"
fi
dir=~/.cache/nixpkgs-review/pr-${PR_NUMBER}
if [ "$OS" != "Linux" ]; then
if [[ "$OS" != "Linux" ]]; then
sandbox=$(nix config show sandbox)
sed -i '/^###/s/$/ (sandbox = '"$sandbox"')/' "$dir/report.md"
fi
if ! [[ -s "$dir/report.md" ]]; then
echo -e "\n---" >> "$dir/report.md"
echo "### \`${{ matrix.system }}\`" >> "$dir/report.md"
echo ":white_check_mark: *No rebuilds*" >> "$dir/report.md"
fi
cat $dir/report.md
report=$(jq -c '.+{$md}' $dir/report.json --rawfile md $dir/report.md | base64 -w0)
echo report_${{ matrix.system }}=$report >> "$GITHUB_OUTPUT"
env:
OS: ${{ runner.os }}
report:
runs-on: ubuntu-latest