Skip to content

Commit

Permalink
Pull develop branch before reading the version (#42)
Browse files Browse the repository at this point in the history
To ensure we use the correct version.
  • Loading branch information
freemanjp committed Sep 9, 2018
1 parent 8792503 commit 44018ec
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions next-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ if [[ "$(git status --untracked-files --short)" != '' ]]; then
exit 1
fi

# Update develop
git checkout develop
git pull

shellcheck moleculew
shellcheck next-version.sh

Expand All @@ -40,9 +44,8 @@ set -x
git fetch
git checkout master && git reset --hard origin/master

# Update develop
# Return to develop
git checkout develop
git pull

git checkout -b "$RELEASE_VERSION-release"

Expand Down

0 comments on commit 44018ec

Please sign in to comment.