aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 116d895600..9b208f5a24 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -460,6 +460,8 @@ pkg:nix:deploy:channel:
- pkg:nix:deploy
script:
- echo "$CACHIX_DEPLOYMENT_KEY" | tr -d '\r' | ssh-add - > /dev/null
+ # Remove all pr branches because they could be missing when we run git fetch --unshallow
+ - git branch --list 'pr-*' | xargs -r git branch -d
- git fetch --unshallow
- git branch -v
- git push git@github.com:coq/coq-on-cachix "${CI_COMMIT_SHA}":"refs/heads/${CI_COMMIT_REF_NAME}"