This repository has been archived by the owner on Oct 13, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: fix octokit in update-jellyfin-release.yml
- Loading branch information
1 parent
eb0371d
commit 2e2a9ae
Showing
1 changed file
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }}" | ||
|
@@ -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] | ||
|
@@ -53,6 +54,7 @@ jobs: | |
|
||
- name: Loop through downloaded files | ||
if: >- | ||
false && | ||
steps.isJellyfinRepo.outputs.isJellyfinRepo == 'true' && | ||
github.event.action != 'deleted' | ||
id: loop | ||
|
@@ -84,6 +86,7 @@ jobs: | |
- name: Create/Update Jellyfin Release | ||
if: >- | ||
false && | ||
steps.isJellyfinRepo.outputs.isJellyfinRepo == 'true' | ||
uses: LizardByte/[email protected] | ||
with: | ||
|