From 71975fc939532aac24792ff94f63f14849cd4993 Mon Sep 17 00:00:00 2001 From: truxnell <19149206+truxnell@users.noreply.github.com> Date: Tue, 17 Dec 2024 21:38:10 +1100 Subject: [PATCH] feat: add flake check action --- .github/workflows/check-flakes.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/check-flakes.yaml diff --git a/.github/workflows/check-flakes.yaml b/.github/workflows/check-flakes.yaml new file mode 100644 index 00000000..f3572be3 --- /dev/null +++ b/.github/workflows/check-flakes.yaml @@ -0,0 +1,24 @@ +--- +name: Check Flakes + +on: + pull_request_target: + types: + - opened + - auto_merge_enabled + push: + paths: + - '**.nix' + - flake.lock + +jobs: + check_flakes: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + - uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # v30 + with: + nix_path: nixpkgs=channel:nixos-unstable + extra_nix_config: | + access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + - run: nix flake check \ No newline at end of file