Cleanup stale branches, if any

This commit is contained in:
Ciapa 2023-04-16 20:07:03 +00:00
parent c2fa76fa26
commit cb5a31e12f
1 changed files with 2 additions and 1 deletions

View File

@ -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"