From 9c55854987095b09cc6e8e73a0f58ab4049e4d4a Mon Sep 17 00:00:00 2001 From: ahtlon Date: Tue, 5 May 2026 11:38:48 +0200 Subject: [PATCH] Update every 14 days; close previous prs --- .gitea/workflows/autoupdate.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/autoupdate.yml b/.gitea/workflows/autoupdate.yml index afcaa15..a4b7c7e 100644 --- a/.gitea/workflows/autoupdate.yml +++ b/.gitea/workflows/autoupdate.yml @@ -2,7 +2,7 @@ name: Weekly Flake Update on: schedule: - - cron: "0 0 * * 4" + - cron: "0 4 /14 * *" workflow_dispatch: permissions: @@ -102,6 +102,18 @@ jobs: -L "bump" -t "$COMMIT_MSG" -d "$COMMIT_DESC" + - name: close other bump requests + run: | + for i in $(tea pr -o simple | grep "Automatic Nixpkgs update" | awk '{print $1}') + do + if [ "$i" = "" ] + then + echo "No bumps to close" + exit 0 + else + tea pr close $i + fi + done - name: Skip pull request if: steps.no-pr.outcome == 'failure' shell: bash