From 10c598c0ab132d279cdfe9a13de50fdf6de162a5 Mon Sep 17 00:00:00 2001 From: Max Headroom Date: Mon, 31 Jan 2022 00:04:04 +0000 Subject: [PATCH] CI: use temp branch --- .gitlab-ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7bdaed7..4e78c64 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,7 +4,10 @@ update: - git add . - git config user.email "ci@privatevoid.net" - git config user.name "CI" + - git branch -D master || exit 0 + - git checkout -b master - git commit -m '[CI] Update extensions' || exit 0 - git remote add pushback gitlab@git.privatevoid.net:max/nix-crx.git || true - chmod 400 $PUSHBACK_KEY - - GIT_SSH_COMMAND="ssh -i $PUSHBACK_KEY" git push pushback :master + - GIT_SSH_COMMAND="ssh -i $PUSHBACK_KEY" git push pushback master + - git branch -D master || exit 0