mirror of
https://github.com/cxfksword/jellyfin-plugin-danmu.git
synced 2026-04-24 10:30:33 +08:00
Fix github action build
This commit is contained in:
2
.github/workflows/publish.yaml
vendored
2
.github/workflows/publish.yaml
vendored
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user