Skip to content

Commit

Permalink
Publish manifest to dedicated branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Mik1ll committed Dec 14, 2024
1 parent c62e821 commit a43f954
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 143 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/publish-jellyfin-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ Desktop.ini
!.gitkeep

artifacts/
Repository/
140 changes: 0 additions & 140 deletions Repository/manifest.json

This file was deleted.

2 changes: 1 addition & 1 deletion jprmbuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
[
Expand Down

0 comments on commit a43f954

Please sign in to comment.