From 0bc557c9b649ece57312f6e2792fb0cc4daeed77 Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Thu, 1 Aug 2024 04:55:24 +1200 Subject: [PATCH] Ensure flake is locked at start of CI run --- .github/workflows/test.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dba4c26..95c75b1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,19 @@ on: - master jobs: + relock: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: cachix/install-nix-action@V27 + - run: nix flake lock + - uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: Update flake.lock + file_pattern: flake.lock + nix-matrix: + needs: relock runs-on: ubuntu-latest outputs: matrix: ${{ steps.set-matrix.outputs.matrix }}