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