mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Perform a cleanup before publishing a tag
This commit is contained in:
parent
a4ff592547
commit
777874c805
@ -43,6 +43,8 @@ gittag:
|
||||
- git remote set-url origin https://veloren-bot:${GITLAB_TOKEN_WRITE}@${CI_PROJECT_URL:8}
|
||||
- |
|
||||
if [[ ! "${SCHEDULE_CADENCE}" =~ ${TAG_REGEX} ]]; then
|
||||
git reflog expire --expire=now --all;
|
||||
git gc --prune=now;
|
||||
git fetch;
|
||||
git tag -a "${SCHEDULE_CADENCE}" -m '' -f;
|
||||
git push origin "${SCHEDULE_CADENCE}" -f || echo "failed pushed, trying again" && sleep 5 && git status && git fsck && git push origin "${SCHEDULE_CADENCE}" -f;
|
||||
|
Loading…
Reference in New Issue
Block a user