From 34c82989d37303a599a9a2bc98ae9f04dce24451 Mon Sep 17 00:00:00 2001 From: TudorAndrei Date: Fri, 10 Oct 2025 23:36:38 +0300 Subject: [PATCH] Add flake.lock update to GitHub Actions workflow - Added 'Update flake lock file' step that runs 'nix flake update' - Modified commit step to include both flake.nix and flake.lock files - Ensures lock file stays in sync when flake is updated --- .github/workflows/update-cursor.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-cursor.yml b/.github/workflows/update-cursor.yml index 9c7052d..a14c29f 100644 --- a/.github/workflows/update-cursor.yml +++ b/.github/workflows/update-cursor.yml @@ -30,6 +30,10 @@ jobs: # Run the update script with auto-confirm echo "y" | ./update-cursor.sh + - name: Update flake lock file + run: | + nix flake update + - name: Test the updated flake run: | nix flake check @@ -45,7 +49,7 @@ jobs: git config --local user.email "action@github.com" git config --local user.name "GitHub Action" - git add flake.nix + git add flake.nix flake.lock git commit -m "Update Cursor to latest version" git push