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
This commit is contained in:
TudorAndrei
2025-10-10 23:36:38 +03:00
parent efd7682dd3
commit 34c82989d3
+5 -1
View File
@@ -30,6 +30,10 @@ jobs:
# Run the update script with auto-confirm # Run the update script with auto-confirm
echo "y" | ./update-cursor.sh echo "y" | ./update-cursor.sh
- name: Update flake lock file
run: |
nix flake update
- name: Test the updated flake - name: Test the updated flake
run: | run: |
nix flake check nix flake check
@@ -45,7 +49,7 @@ jobs:
git config --local user.email "action@github.com" git config --local user.email "action@github.com"
git config --local user.name "GitHub Action" 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 commit -m "Update Cursor to latest version"
git push git push