fix(ci): Discard changes before checking out branch

This commit is contained in:
MDLeom 2020-04-15 04:56:53 +01:00
parent ee31cf6a0d
commit 65f17c547e
No known key found for this signature in database
GPG Key ID: 5D9DB57A25D34EE3
1 changed files with 2 additions and 0 deletions

View File

@ -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