-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (29 loc) · 1010 Bytes
/
nixpkgs-review.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
name: Nixpkgs Review
on:
workflow_dispatch:
inputs:
pr:
description: "The number of the pull request to review."
type: number
required: true
run-name: "Review Nixpkgs PR ${{ inputs.pr }} with nixpkgs-review"
jobs:
review:
runs-on: ubuntu-22.04
env:
nixpkgs-review-attr: "github:${{ github.repository }}/${{ github.sha }}#nixpkgs-review"
steps:
- uses: actions/checkout@v4
with:
repository: "NixOS/nixpkgs"
fetch-depth:
# Infinite depth (source: https://git-scm.com/docs/shallow)
2147483647
- uses: cachix/install-nix-action@v23
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Run nixpkgs-review
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: nix run "${{ env.nixpkgs-review-attr }}" -- pr ${{ inputs.pr }} --run "find logs/ -type f -exec awk 'FNR==1{print FILENAME}1' {} +; cat report.md >> $GITHUB_STEP_SUMMARY"