From cb5a31e12f81965a2875b34724e38019547150d9 Mon Sep 17 00:00:00 2001 From: Ciapa Date: Sun, 16 Apr 2023 20:07:03 +0000 Subject: [PATCH] Cleanup stale branches, if any --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0d72c8c..ae759db 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -57,10 +57,11 @@ check updates: # Update flakes - nix flake update # Push changes + - git branch -D flakes_update || true - git checkout -b flakes_update - git add flake.lock - git commit -m 'Update NixOS Flakes' - - git push --set-upstream origin flakes_update -o merge_request.create + - git push -f --set-upstream origin flakes_update -o merge_request.create rules: - if: $CI_PIPELINE_SOURCE == "schedule"