Skip to content

Commit

Permalink
Update version_update.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Girish-Anadv-07 authored Oct 24, 2023
1 parent f8eb919 commit d3e90f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions version_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ python_file1="version.py"

version=$(grep "__version_info__ =" "$python_file1" | sed 's/.*\[\(.*\)\].*/\1/')
sed -i -e "1s/s = .*/s = [$version]/" version_update.py
git status
git add version_update.py
git commit -m "version update"
git push -f origin master

updated_version=$(python version_update.py)
sed -i -e "1s/__version_info__ = .*/__version_info__ = $updated_version/" version.py
git status
git add version.py
git commit -m "version update"
git push -f origin master
Expand Down

0 comments on commit d3e90f3

Please sign in to comment.