Skip to content

Commit

Permalink
updated git flow hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiDMS committed Sep 25, 2019
1 parent 611259a commit 950ee63
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions git_hooks/pre-flow-hotfix-start
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
VERSION=$1
echo "Incrementing version to $VERSION"

git checkout customer
git pull

sed -i "s/\"version\": \".*\"/\"version\": \"${VERSION}\"/g" package.json
sed -i "s/\"version\": \".*\"/\"version\": \"${VERSION}\"/g" app/manifest.json

Expand Down
3 changes: 3 additions & 0 deletions git_hooks/pre-flow-release-start
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
VERSION=$1
echo "Incrementing version to $VERSION"

git checkout master
git pull

sed -i "s/\"version\": \".*\"/\"version\": \"${VERSION}\"/g" package.json
sed -i "s/\"version\": \".*\"/\"version\": \"${VERSION}\"/g" app/manifest.json

Expand Down

0 comments on commit 950ee63

Please sign in to comment.