From 8fad2826b176fe7a39a391502a4f47e7c69cde96 Mon Sep 17 00:00:00 2001 From: Marcus Ramberg Date: Mon, 8 Dec 2025 16:04:34 +0100 Subject: [PATCH] ci: add flake check --- .github/workflows/nix-pr-check.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/nix-pr-check.yml diff --git a/.github/workflows/nix-pr-check.yml b/.github/workflows/nix-pr-check.yml new file mode 100644 index 00000000..56cc8324 --- /dev/null +++ b/.github/workflows/nix-pr-check.yml @@ -0,0 +1,30 @@ +name: Check nix flake + +on: + pull_request: + branches: [master, main] + paths: + - "flake.*" + - "distro/nix/**" +jobs: + check-flake: + runs-on: ubuntu-latest + steps: + - name: Create GitHub App token + id: app_token + uses: actions/create-github-app-token@v1 + with: + app-id: ${{ secrets.APP_ID }} + private-key: ${{ secrets.APP_PRIVATE_KEY }} + + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + token: ${{ steps.app_token.outputs.token }} + + - name: Install Nix + uses: cachix/install-nix-action@v31 + + - name: Update vendorHash in flake.nix + run: nix flake check