From c95443f8b89735444aea3d9094c816d258e27f8a Mon Sep 17 00:00:00 2001 From: tomoron Date: Thu, 23 Apr 2026 17:40:49 +0200 Subject: [PATCH] auto update push rights --- .gitea/workflows/auto_update.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.gitea/workflows/auto_update.yaml b/.gitea/workflows/auto_update.yaml index bc29603..8d2ea93 100644 --- a/.gitea/workflows/auto_update.yaml +++ b/.gitea/workflows/auto_update.yaml @@ -1,5 +1,9 @@ name: update the nix flake lock automatically every week run-name: update + +permissions: + contents: write + on: schedule: - cron: "0 4 * * 1" @@ -17,3 +21,11 @@ jobs: - name: run the update run: nix flake update + + - name: Commit and push + run: | + git config user.name "Update action" + git config user.email "update-action@no-one.com" + git add . + git commit -m "Auto update" + git push