From a43f954c463d0ead4c1b2ad82380cad290957146 Mon Sep 17 00:00:00 2001 From: Mik1ll <27949189+Mik1ll@users.noreply.github.com> Date: Sat, 14 Dec 2024 04:07:34 -0800 Subject: [PATCH] Publish manifest to dedicated branch --- .github/workflows/publish-jellyfin-plugin.yml | 11 +- .gitignore | 1 + Repository/manifest.json | 140 ------------------ jprmbuild.py | 2 +- 4 files changed, 11 insertions(+), 143 deletions(-) delete mode 100644 Repository/manifest.json diff --git a/.github/workflows/publish-jellyfin-plugin.yml b/.github/workflows/publish-jellyfin-plugin.yml index 85876fd..cc2e493 100644 --- a/.github/workflows/publish-jellyfin-plugin.yml +++ b/.github/workflows/publish-jellyfin-plugin.yml @@ -15,6 +15,11 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 1 + - uses: actions/checkout@v4 + with: + fetch-depth: 1 + ref: repository + path: Repository - uses: actions/setup-dotnet@v4 with: dotnet-version: 8.0.x @@ -35,12 +40,14 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | + cd Repository + cp -f ../artifacts/manifest.json ./ git config user.name "github-actions[bot]" git config user.email "41898282+github-actions[bot]@users.noreply.github.com" branch_name="update-repo-$GITHUB_REF_NAME" git checkout -b "$branch_name" - git add Repository/manifest.json + git add manifest.json commit_msg="Add $GITHUB_REF_NAME to Repository" git commit -m "$commit_msg" git push -u origin "$branch_name" - gh pr create --assignee "$GITHUB_REPOSITORY_OWNER" --title "$commit_msg" --body "" --base master + gh pr create --assignee "$GITHUB_REPOSITORY_OWNER" --title "$commit_msg" --body "" --base repository diff --git a/.gitignore b/.gitignore index e9308d2..ddf8544 100644 --- a/.gitignore +++ b/.gitignore @@ -52,3 +52,4 @@ Desktop.ini !.gitkeep artifacts/ +Repository/ diff --git a/Repository/manifest.json b/Repository/manifest.json deleted file mode 100644 index 01e1532..0000000 --- a/Repository/manifest.json +++ /dev/null @@ -1,140 +0,0 @@ -[ - { - "guid": "1e81a180-292d-4523-9d57-d03f5221c2f2", - "name": "Shizou", - "description": "This is the Description\n", - "overview": "Populate metadata/view states using the local Shizou server", - "owner": "Mik1ll", - "category": "Metadata", - "versions": [ - { - "version": "1.4.1.0", - "changelog": "", - "targetAbi": "10.9.9.0", - "sourceUrl": "https://github.com/Mik1ll/Shizou.JellyfinPlugin/releases/download/v1.4.1/shizou_1.4.1.0.zip", - "checksum": "e18be1e8f19fbb71df105c1650484cbd", - "timestamp": "2024-11-13T14:03:47Z" - }, - { - "version": "1.4.0.0", - "changelog": "", - "targetAbi": "10.9.9.0", - "sourceUrl": "https://github.com/Mik1ll/Shizou.JellyfinPlugin/releases/download/v1.4.0/shizou_1.4.0.0.zip", - "checksum": "60d8dfc8db725110b80ab6705dd8f389", - "timestamp": "2024-11-12T10:27:02Z" - }, - { - "version": "1.3.10.0", - "changelog": "", - "targetAbi": "10.9.9.0", - "sourceUrl": "https://github.com/Mik1ll/Shizou.JellyfinPlugin/releases/download/v1.3.10/shizou_1.3.10.0.zip", - "checksum": "684037a5f4fab900b10cc0cdf9c01820", - "timestamp": "2024-11-07T18:00:58Z" - }, - { - "version": "1.2.5.0", - "changelog": "", - "targetAbi": "10.9.9.0", - "sourceUrl": "https://github.com/Mik1ll/Shizou/releases/download/JellyfinPlugin/v1.2.5/shizou_1.2.5.0.zip", - "checksum": "b827ae950096bc81cc762c6f2060fa21", - "timestamp": "2024-10-15T14:57:19Z" - }, - { - "version": "1.2.4.0", - "changelog": "", - "targetAbi": "10.9.9.0", - "sourceUrl": "https://github.com/Mik1ll/Shizou/releases/download/JellyfinPlugin/v1.2.4/shizou_1.2.4.0.zip", - "checksum": "132be52b9fa2189fb06703cd0d9e01f6", - "timestamp": "2024-10-15T14:06:44Z" - }, - { - "version": "1.2.3.0", - "changelog": "", - "targetAbi": "10.9.9.0", - "sourceUrl": "https://github.com/Mik1ll/Shizou/releases/download/JellyfinPlugin/v1.2.3/shizou_1.2.3.0.zip", - "checksum": "c79fcef23c43b68e881832591fc84a0d", - "timestamp": "2024-10-15T13:57:02Z" - }, - { - "version": "1.2.2.0", - "changelog": "", - "targetAbi": "10.9.9.0", - "sourceUrl": "https://github.com/Mik1ll/Shizou/releases/download/JellyfinPlugin/v1.2.2/shizou_1.2.2.0.zip", - "checksum": "609faf892556be0762096fad7fd54851", - "timestamp": "2024-10-15T12:58:01Z" - }, - { - "version": "1.2.1.0", - "changelog": "", - "targetAbi": "10.9.9.0", - "sourceUrl": "https://github.com/Mik1ll/Shizou/releases/download/JellyfinPlugin/v1.2.1/shizou_1.2.1.0.zip", - "checksum": "34fcb6421aa5ac2af862453c103844d2", - "timestamp": "2024-10-15T12:31:26Z" - }, - { - "version": "1.2.0.0", - "changelog": "", - "targetAbi": "10.9.9.0", - "sourceUrl": "https://github.com/Mik1ll/Shizou/releases/download/JellyfinPlugin/v1.2.0/shizou_1.2.0.0.zip", - "checksum": "629ec36428abfb15d096dba6ef4b9cdf", - "timestamp": "2024-10-14T09:53:01Z" - }, - { - "version": "1.1.4.0", - "changelog": "", - "targetAbi": "10.9.9.0", - "sourceUrl": "https://github.com/Mik1ll/Shizou/releases/download/JellyfinPlugin/v1.1.4/shizou_1.1.4.0.zip", - "checksum": "354f64e544b2dc849e55ad43c1999aa4", - "timestamp": "2024-10-08T19:59:29Z" - }, - { - "version": "1.1.3.0", - "changelog": "", - "targetAbi": "10.9.9.0", - "sourceUrl": "https://github.com/Mik1ll/Shizou/releases/download/JellyfinPlugin/v1.1.3/shizou_1.1.3.0.zip", - "checksum": "0f93d41b11f588b736606dc22bcf2ca0", - "timestamp": "2024-10-08T19:48:58Z" - }, - { - "version": "1.1.2.0", - "changelog": "", - "targetAbi": "10.9.9.0", - "sourceUrl": "https://github.com/Mik1ll/Shizou/releases/download/JellyfinPlugin/v1.1.2/shizou_1.1.2.0.zip", - "checksum": "748d5cc782162d8a11c0d71764f82aac", - "timestamp": "2024-10-08T19:09:46Z" - }, - { - "version": "1.1.1.0", - "changelog": "", - "targetAbi": "10.9.9.0", - "sourceUrl": "https://github.com/Mik1ll/Shizou/releases/download/JellyfinPlugin/v1.1.1/shizou_1.1.1.0.zip", - "checksum": "82f64744ce7dd870cba4115d42b26f37", - "timestamp": "2024-10-08T18:00:28Z" - }, - { - "version": "1.1.0.0", - "changelog": "", - "targetAbi": "10.9.9.0", - "sourceUrl": "https://github.com/Mik1ll/Shizou/releases/download/JellyfinPlugin/v1.1.0/shizou_1.1.0.0.zip", - "checksum": "e19ec625fd145d4ae3849a13ed44454f", - "timestamp": "2024-10-08T15:27:34Z" - }, - { - "version": "1.0.1.0", - "changelog": "", - "targetAbi": "10.9.9.0", - "sourceUrl": "https://github.com/Mik1ll/Shizou/releases/download/JellyfinPlugin/v1.0.1/shizou_1.0.1.0.zip", - "checksum": "f5060f8eeb7e43cb3df98eec9eb2e5ff", - "timestamp": "2024-10-08T14:45:09Z" - }, - { - "version": "1.0.0.0", - "changelog": "", - "targetAbi": "10.9.9.0", - "sourceUrl": "https://github.com/Mik1ll/Shizou/releases/download/JellyfinPlugin/v1.0.0/shizou_1.0.0.0.zip", - "checksum": "0037f9b7d7be7df5b60c8e12d44669f1", - "timestamp": "2024-10-08T13:13:27Z" - } - ] - } -] \ No newline at end of file diff --git a/jprmbuild.py b/jprmbuild.py index b6c61a0..0484cd6 100644 --- a/jprmbuild.py +++ b/jprmbuild.py @@ -116,7 +116,7 @@ print("Package url: " + package_url) -manifest_file = "Repository/manifest.json" +manifest_file = artifact_dir.joinpath("manifest.json") jprm_repo_p = subprocess.run( [