Skip to content
This repository has been archived by the owner on Oct 13, 2024. It is now read-only.

Commit

Permalink
ci: fix octokit in update-jellyfin-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher committed May 23, 2024
1 parent eb0371d commit 4954dd4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/update-jellyfin-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,10 @@ jobs:
id: isJellyfinRepo
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GH_BOT_TOKEN }}
script: |
const repo = context.payload.repository;
const repoLabels = await github.repos.listLabelsForRepo({
owner: repo.owner.login,
repo: repo.name
const repoLabels = await github.rest.issues.listLabelsForRepo({
owner: context.repo.owner,
repo: context.repo.repo
});
const isJellyfinRepo = repoLabels.data.some(label => label.name === 'jellyfin-plugin');
core.setOutput('isJellyfinRepo', isJellyfinRepo);
Expand Down

0 comments on commit 4954dd4

Please sign in to comment.