Auto PR: next → main #1921
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Check Nix flake | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "flake.lock" | |
| - "**/*.nix" | |
| workflow_dispatch: # allow manual trigger | |
| jobs: | |
| check-flake: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup SSH for private flake inputs | |
| uses: webfactory/[email protected] | |
| with: | |
| ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
| - name: Add GitHub to known hosts | |
| run: ssh-keyscan github.com >> ~/.ssh/known_hosts | |
| - name: Install Nix | |
| uses: DeterminateSystems/nix-installer-action@main | |
| - uses: DeterminateSystems/flakehub-cache-action@main | |
| - name: Check Nix flake inputs | |
| uses: DeterminateSystems/flake-checker-action@v12 | |
| with: | |
| fail-mode: true | |
| send-statistics: false | |
| - name: Run nix flake check | |
| run: nix flake check |