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 # Update flakes
- nix flake update - nix flake update
# Push changes # Push changes
- git branch -D flakes_update || true
- git checkout -b flakes_update - git checkout -b flakes_update
- git add flake.lock - git add flake.lock
- git commit -m 'Update NixOS Flakes' - 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: rules:
- if: $CI_PIPELINE_SOURCE == "schedule" - if: $CI_PIPELINE_SOURCE == "schedule"