This repository has been archived by the owner on Jul 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DEVPROD-5132: Make tags unique (#500)
- Loading branch information
Showing
4 changed files
with
20 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
version-tag-prefix parsley/v | ||
version-git-message "parsley/v%s" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,27 @@ | ||
#!/bin/bash | ||
|
||
WAIT_TIME=9 | ||
GITHUB_REMOTE=https://github.com/evergreen-ci/parsley | ||
GIT_DESTINATION=$(git rev-parse --abbrev-ref @{upstream}) | ||
|
||
git push $GITHUB_REMOTE | ||
|
||
if git push upstream | ||
then | ||
echo "Successfully pushed to ${GIT_DESTINATION}" | ||
else | ||
echo "Failed to push to ${GIT_DESTINATION}" | ||
exit 1 | ||
fi | ||
|
||
i=$WAIT_TIME | ||
while [ $i -gt 0 ] | ||
do echo -en "Waiting ${i}s for Evergreen to pick up the version\r"; sleep 1; i=$((i-1)) | ||
done | ||
echo "" | ||
|
||
git push --tags $GITHUB_REMOTE | ||
if git push --tags upstream | ||
then | ||
echo "Successfully pushed tags to ${GIT_DESTINATION}" | ||
else | ||
echo "Failed to push tags to ${GIT_DESTINATION}" | ||
exit 1 | ||
fi |