mirror of https://gitlab.com/curben/blog
fix(ci): Discard changes before checking out branch
This commit is contained in:
parent
ee31cf6a0d
commit
65f17c547e
|
@ -29,6 +29,8 @@ test:
|
||||||
# (workaround) force exit code 0
|
# (workaround) force exit code 0
|
||||||
- ssh -T git@github.com || ":"
|
- ssh -T git@github.com || ":"
|
||||||
- git remote add mirror git@github.com:curbengh/blog.git
|
- 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 master && git push mirror master
|
||||||
- git checkout site && git push mirror site
|
- git checkout site && git push mirror site
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue