Skip to content

Commit ce0de70

Browse files
Add dispatch to central jellyfin-plugins on release
After each successful release to gh-pages, triggers a repository_dispatch to LuckyNoS7evin/jellyfin-plugins to rebuild the combined manifest. Requires JELLYFIN_PLUGINS_DISPATCH_TOKEN secret (PAT with public_repo scope). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 19b3205 commit ce0de70

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,15 @@ jobs:
136136
git add manifest.json releases/
137137
git diff --staged --quiet || git commit -m "Release $VERSION"
138138
git push origin gh-pages
139+
140+
- name: Trigger central manifest update
141+
if: ${{ secrets.JELLYFIN_PLUGINS_DISPATCH_TOKEN != '' }}
142+
env:
143+
JELLYFIN_PLUGINS_DISPATCH_TOKEN: ${{ secrets.JELLYFIN_PLUGINS_DISPATCH_TOKEN }}
144+
run: |
145+
curl -X POST \
146+
-H "Authorization: Bearer $JELLYFIN_PLUGINS_DISPATCH_TOKEN" \
147+
-H "Accept: application/vnd.github+json" \
148+
-H "X-GitHub-Api-Version: 2022-11-28" \
149+
https://api.github.com/repos/LuckyNoS7evin/jellyfin-plugins/dispatches \
150+
-d '{"event_type":"plugin-published","client_payload":{"plugin":"missing-episodes"}}'

0 commit comments

Comments
 (0)