From 65f17c547ef509d3a2ce40c8963b54c10f3707e8 Mon Sep 17 00:00:00 2001 From: MDLeom <2809763-curben@users.noreply.gitlab.com> Date: Wed, 15 Apr 2020 04:56:53 +0100 Subject: [PATCH] fix(ci): Discard changes before checking out branch --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 464f06a..f5b5616 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -29,6 +29,8 @@ test: # (workaround) force exit code 0 - ssh -T git@github.com || ":" - git remote add mirror git@github.com:curbengh/blog.git + # Discard changes before checking out branch + - git reset HEAD --hard - git checkout master && git push mirror master - git checkout site && git push mirror site