Skip to content

Commit

Permalink
Merge pull request #3471 from hosseinsh/aut0mate-bump-version
Browse files Browse the repository at this point in the history
Automate bump version
  • Loading branch information
hosseinsh authored Mar 12, 2021
2 parents c2ec095 + 29b5c55 commit 5e5e72c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/lemur-publish-release-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Autobump version
run: |
# from refs/tags/v0.8.1 get 0.8.1
VERSION=$(echo $GITHUB_REF | sed 's#.*/v##')
PLACEHOLDER='__version__ = "develop"'
VERSION_FILE='lemur/__about__.py'
# in case placeholder is missing, exists with code 1 and github actions aborts the build
grep "$PLACEHOLDER" "$VERSION_FILE"
sed -i "s/$PLACEHOLDER/__version__ = \"${VERSION}\"/g" "$VERSION_FILE"
shell: bash
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion lemur/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
__summary__ = "Certificate management and orchestration service"
__uri__ = "https://github.com/Netflix/lemur"

__version__ = "0.8.0"
__version__ = "develop"

__author__ = "The Lemur developers"
__email__ = "[email protected]"
Expand Down

0 comments on commit 5e5e72c

Please sign in to comment.