You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 💬 Exclude hash (just "{semver}.dev" instead of "{semver}.{hash}-dev")
* ⏪ Revert "🚀 Drop older version bump commits before adding new one"
* 🚀 Include previous commit message when bumping version tags
* 🔧 Add helper scripts for merging with divergent tags
This reverts commit 4f635d5.
Copy file name to clipboardExpand all lines: .circleci/config.yml
+5-17Lines changed: 5 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -139,32 +139,20 @@ jobs:
139
139
name: "Checking if version needs updated"
140
140
# update version if version needs updated, otherwise just move on
141
141
command: |
142
-
if [[ ! $(git log -1 --pretty=%B) == *"Update version to"* ]]
142
+
COMMIT_MESSAGE=$(git log -1 --pretty=%B)
143
+
if [[ ! "$COMMIT_MESSAGE" == *"Update version to"* ]]
143
144
then
144
145
cd $HOME/project/CPAC
145
-
VERSION=$(python -c "from info import __version__; print(__version__)")
146
+
VERSION=$(python -c "from info import __version__; print('.'.join(('.'.join(__version__[::-1].split('-')[1].split('.')[1:])[::-1], __version__.split('-')[1])) if '-' in __version__ else __version__)")
146
147
cd ..
147
-
if ! [[ $CIRCLE_BRANCH = 'master' ]]
148
-
then
149
-
git fetch --all
150
-
if [[ -n ${CIRCLE_PR_NUMBER} && -n ${GITHUB_PR_BASE_TOKEN} ]]
0 commit comments