From 6a80c1e172950c2a29bd5d25f67bdfe78faaa94a Mon Sep 17 00:00:00 2001 From: kalle Date: Sat, 31 Jan 2026 10:48:57 +0100 Subject: [PATCH] ci: add nightly nix flake update workflow Co-Authored-By: Claude Opus 4.5 --- .gitea/workflows/flake-update.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .gitea/workflows/flake-update.yaml diff --git a/.gitea/workflows/flake-update.yaml b/.gitea/workflows/flake-update.yaml new file mode 100644 index 0000000..a22e06f --- /dev/null +++ b/.gitea/workflows/flake-update.yaml @@ -0,0 +1,26 @@ +name: Nix Flake Update + +on: + schedule: + - cron: "0 3 * * *" + workflow_dispatch: {} + +jobs: + update: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: DeterminateSystems/nix-installer-action@main + + - name: Update flake inputs + run: nix flake update + + - name: Commit and push changes + run: | + git diff --quiet flake.lock && echo "No changes" && exit 0 + git config user.name "Gitea Actions" + git config user.email "actions@gitea.local" + git add flake.lock + git commit -m "chore: nix flake update $(date -I)" + git push