Fix github action build

This commit is contained in:
cxfksword
2022-10-11 15:18:51 +08:00
parent 0a47d3f383
commit 8f73334442
2 changed files with 10 additions and 7 deletions

View File

@@ -35,6 +35,6 @@ jobs:
- name: Update manifest
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: master
branch: main
commit_message: Update repo manifest
file_pattern: manifest.json

View File

@@ -13,14 +13,17 @@ prerelease = bool(opts.prerelease)
artifact_dir = os.path.join(os.getcwd(), 'artifacts')
os.mkdir(artifact_dir)
if version.startswith('v'):
version = version.lstrip("v")
version_list = version.split('.')
if len(version_list) == 3:
version_list.append('0')
version = '.'.join(version_list)
if prerelease:
jellyfin_repo_file = "./manifest-unstable.json"
version_list = version.split('.')
if len(version_list) == 3:
version_list.append('0')
else:
version_list[3] = str(int(version_list[3]) + 1)
version = '.'.join(version_list)
else:
jellyfin_repo_file = "./manifest.json"