diff --git a/.github/workflows/flake-update.yml b/.github/workflows/flake-update.yml index 24f9c82..40581f6 100644 --- a/.github/workflows/flake-update.yml +++ b/.github/workflows/flake-update.yml @@ -12,4 +12,16 @@ jobs: - name: Install Nix uses: cachix/install-nix-action@v30 - name: Update flake packages - uses: selfuryon/nix-update-action@v1.1.0 + run: nix flake update + - name: Commit changes + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "github-actions[bot]@users.noreply.github.com" + if [[ $(git status --porcelain) ]]; then + git add flake.lock + git commit -m "Chore: update flake.lock" + git push + else + echo "No changes to commit" + fi +