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