Skip to content

Commit

Permalink
fix no alpha 0 in version string + reset version to account for build…
Browse files Browse the repository at this point in the history
… trigger that will run on push + ignore tests and setup.py in alpha build action
  • Loading branch information
JarbasAl committed Feb 24, 2022
1 parent a0f787c commit 6940551
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish_alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
- dev
paths-ignore:
- 'ovos_local_backend/version.py'
- 'setup.py'
- 'test'
workflow_dispatch:

jobs:
Expand Down
4 changes: 2 additions & 2 deletions ovos_local_backend/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
# START_VERSION_BLOCK
VERSION_MAJOR = 0
VERSION_MINOR = 1
VERSION_BUILD = 3
VERSION_ALPHA = 0
VERSION_BUILD = 2
VERSION_ALPHA = -1
# END_VERSION_BLOCK
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def get_version():
'# END_VERSION_BLOCK' in line):
break
version = f"{major}.{minor}.{build}"
if alpha:
if alpha and int(alpha) > 0:
version += f"a{alpha}"
return version

Expand Down

0 comments on commit 6940551

Please sign in to comment.