mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
[30] update version display
This commit is contained in:
parent
6bd98c3ba8
commit
fb72ee1a66
3 changed files with 6 additions and 6 deletions
2
.github/workflows/validate.yml
vendored
2
.github/workflows/validate.yml
vendored
|
@ -32,7 +32,7 @@ jobs:
|
|||
needs: [ validate-pull ]
|
||||
if: github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name && github.base_ref == 'nightly' && startswith(github.head_ref, 'docker-')
|
||||
steps:
|
||||
|
||||
|
||||
- name: Create Tag
|
||||
id: create-tag
|
||||
run: |
|
||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
2.0.1-develop29
|
||||
2.0.1-develop30
|
||||
|
|
|
@ -161,7 +161,7 @@ class Requests:
|
|||
def guess_branch(self):
|
||||
if self.git_branch:
|
||||
return self.git_branch
|
||||
elif self.env_version in ["nightly", "develop"]:
|
||||
elif self.env_version:
|
||||
return self.env_version
|
||||
elif self.file_version[2] > 0:
|
||||
dev_version = self.get_develop()
|
||||
|
@ -173,10 +173,10 @@ class Requests:
|
|||
return "master"
|
||||
|
||||
def current_version(self, version, branch=None):
|
||||
if branch == "nightly":
|
||||
return self.get_nightly()
|
||||
elif branch == "develop":
|
||||
if branch == "develop":
|
||||
return self.get_develop()
|
||||
elif branch:
|
||||
return self.get_nightly()
|
||||
elif version[2] > 0:
|
||||
new_version = self.get_develop()
|
||||
if version[1] != new_version[1] or new_version[2] >= version[2]:
|
||||
|
|
Loading…
Reference in a new issue