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 2e2a9ae
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/update-jellyfin-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ name: Update Jellyfin release
on:
release:
types: [created, edited, deleted]
pull_request:
types: [opened, synchronize] # todo: remove this after testing

concurrency:
group: "${{ github.workflow }}-${{ github.event.release.tag_name }}"
Expand All @@ -26,19 +28,18 @@ 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);
- name: Download release asset
id: download
if: >-
false &&
steps.isJellyfinRepo.outputs.isJellyfinRepo == 'true' &&
github.event.action != 'deleted'
uses: robinraju/[email protected]
Expand All @@ -53,6 +54,7 @@ jobs:

- name: Loop through downloaded files
if: >-
false &&
steps.isJellyfinRepo.outputs.isJellyfinRepo == 'true' &&
github.event.action != 'deleted'
id: loop
Expand Down Expand Up @@ -84,6 +86,7 @@ jobs:
- name: Create/Update Jellyfin Release
if: >-
false &&
steps.isJellyfinRepo.outputs.isJellyfinRepo == 'true'
uses: LizardByte/[email protected]
with:
Expand Down

0 comments on commit 2e2a9ae

Please sign in to comment.