diff --git a/scripts/push_version.sh b/scripts/push_version.sh index 2b2c3a0..2632cca 100755 --- a/scripts/push_version.sh +++ b/scripts/push_version.sh @@ -7,5 +7,7 @@ then git config --local user.email "travis@travis-ci.org" git add Cargo.toml git commit --allow-empty -m "Bump version to $TRAVIS_TAG [skip ci]" - git push https://${GITHUB_TOKEN}@github.com/maur1th/task_diff.git HEAD:master + git remote set-url origin https://${GITHUB_TOKEN}@github.com/maur1th/task_diff.git + git pull --rebase origin master + git push origin HEAD:master fi