feat: include systems without rebuilds in report
This commit is contained in:
parent
a966ca7e6a
commit
b029859d6d
1 changed files with 8 additions and 3 deletions
11
.github/workflows/review.yml
vendored
11
.github/workflows/review.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue