Cleanup stale branches, if any
This commit is contained in:
parent
c2fa76fa26
commit
cb5a31e12f
|
@ -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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue