From b029859d6dce58718f279ced3bd121b0c0eaed8d Mon Sep 17 00:00:00 2001 From: Defelo Date: Thu, 17 Jul 2025 12:13:29 +0200 Subject: [PATCH] feat: include systems without rebuilds in report --- .github/workflows/review.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/review.yml b/.github/workflows/review.yml index 8b7d7c2..163a50f 100644 --- a/.github/workflows/review.yml +++ b/.github/workflows/review.yml @@ -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