From 14c09208ac40078a9089dd449de34d980fe2d4d5 Mon Sep 17 00:00:00 2001 From: blahai Date: Mon, 30 Dec 2024 02:22:23 +0200 Subject: [PATCH] Workflows: fix --- .github/workflows/flake-update.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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 +