ci: disable client generation workflow (#525)

This commit is contained in:
Daniel
2026-04-10 11:39:25 +02:00
committed by GitHub
parent 011aa6b990
commit c5f4f54fcf
4 changed files with 87 additions and 190 deletions
@@ -1,57 +0,0 @@
name: 'Clients Update Pull Request'
on:
# pull_request:
# paths:
# - 'assets/clients/clients.yaml'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.21'
- name: Test if we can generate clients
run: |
go install github.com/awesome-jellyfin/clients-md-generator/cmd/generate@latest
generate -input assets/clients/clients.yaml -out-stdout -out-file clients_result.md
- name: Create Comment Body
run: |
cat <<EOF > comment_body.txt
<!-- [clients-result] -->
**Thank you for your contribution! ❤️**
Here you can find a preview of the generated <code>CLIENTS.md</code> file:
<details>
<summary><code>CLIENTS.md</code></summary>
$(cat clients_result.md)
</details>
EOF
- name: Find Comment from Linter
uses: peter-evans/find-comment@v3
id: fc
with:
issue-number: ${{ github.event.number }}
comment-author: 'awesome-jellyfin-bot'
body-includes: '<!-- [clients-result] -->'
- name: Create or Update Comment
uses: peter-evans/create-or-update-comment@v4
with:
token: ${{ secrets.AWESOME_JELLYFIN_BOT_TOKEN }}
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.number }}
edit-mode: replace
body-path: comment_body.txt
@@ -1,47 +0,0 @@
name: '[Clients] Update CLIENTS.md'
on:
push:
branches:
- 'main'
paths:
- 'assets/clients/clients.yaml'
- 'assets/clients/CLIENTS.template.md'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.AWESOME_JELLYFIN_BOT_TOKEN }}
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.21'
- name: Generate CLIENTS.md
run: |
go install github.com/awesome-jellyfin/clients-md-generator/cmd/generate@latest
generate -input assets/clients/clients.yaml -out-file assets/clients/generated-clients.md
echo "" > CLIENTS.md
while read p; do
if [[ $p == "{{ CLIENTS }}" ]]; then
cat assets/clients/generated-clients.md >> CLIENTS.md
else
echo "$p" >> CLIENTS.md
fi
done < assets/clients/CLIENTS.template.md
- name: Commit and push if there are changes
run: |
git config --local user.email "awesome-jellyfin@d2a.io"
git config --local user.name "awesome-jellyfin-bot"
git add CLIENTS.md
git commit -m "chore: update CLIENTS.md" --allow-empty || exit 0
git push
-86
View File
@@ -1,86 +0,0 @@
name: 'README Update Pull Request'
on:
# pull_request:
# paths:
# - 'README.md'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.21'
- name: Install Sorter
run: |
go install github.com/awesome-jellyfin/clients-md-generator/cmd/sort@v1.0.1
- name: Sort README
id: sorting
run: |
go run github.com/awesome-jellyfin/clients-md-generator/cmd/sort@v1.0.1 \
-input README.md \
-out-file README.sorted.md \
-out-stdout \
-fail
continue-on-error: true
- name: Generate Comment Body on Failure
if: steps.sorting.outcome == 'failure'
run: |
cat <<EOF > comment_body.txt
<!-- [sort-result] -->
**Thank you for your contribution! ❤️**
We found sorting changes in <code>README.md</code>.
Here is a diff showing what changed:
<details>
<summary><code>README.md</code> diff</summary>
\`\`\`diff
$(diff -u README.md README.sorted.md || true)
\`\`\`
</details>
EOF
- name: Generate Comment Body on Success
if: steps.sorting.outcome != 'failure'
run: |
cat <<EOF > comment_body.txt
<!-- [sort-result] -->
**Thank you for your contribution! ❤️**
No issues found with the ordering.
EOF
- name: Find Comment from Linter
uses: peter-evans/find-comment@v3
id: fc
with:
issue-number: ${{ github.event.number }}
comment-author: 'awesome-jellyfin-bot'
body-includes: '<!-- [sort-result] -->'
- name: Create or Update Sorting Diff Comment
uses: peter-evans/create-or-update-comment@v4
with:
token: ${{ secrets.AWESOME_JELLYFIN_BOT_TOKEN }}
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.number }}
body-path: comment_body.txt
edit-mode: replace
- name: Fail if sorting changed
if: steps.sorting.outcome == 'failure'
run: |
echo "README.md requires sorting. Failing the pipeline."
exit 1
+87
View File
@@ -0,0 +1,87 @@
issue_headings:
name: "Client Name"
website: "Client Website"
targets: "Targets"
price: "Price"
downloads: "Download Links"
oss_domains:
- github.com
- gitlab.com
- codeberg.org
download_rules:
- name: GitHub
pattern: "github\\.com/(?P<owner>[^/]+)/(?P<repo>[^/]+)"
type: github
- name: App Store
pattern: "apps\\.apple\\.com/.*?/id(?P<id>\\d+)"
type: app-store
- name: Google Play
pattern: "play\\.google\\.com/store/apps/details\\?id=(?P<id>[\\w.]+)"
type: google-play
- name: Flathub
pattern: "flathub\\.org/apps/(?P<package>[\\w.]+)"
type: flathub
- name: F-Droid
pattern: "f-droid\\.org/.*/packages/"
type: shield
defaults:
icon: F-Droid
- name: IzzyOnDroid
pattern: "apt\\.izzysoft\\.de/fdroid/index/apk/"
type: shield
defaults:
label: Izzysoft
- name: TestFlight
pattern: "testflight\\.apple\\.com/join/"
type: shield
defaults:
icon: App Store
label: TestFlight
- name: Amazon Appstore
pattern: "amazon\\.com/gp/(aw/d|product)/"
type: shield
defaults:
icon: Amazon
- name: Microsoft Store
pattern: "apps\\.microsoft\\.com/detail/"
type: shield
defaults:
label: Microsoft Store
- name: Roku Channel Store
pattern: "channelstore\\.roku\\.com/details/"
type: shield
defaults:
icon: Roku
- name: Huawei AppGallery
pattern: "appgallery\\.huawei\\.com/app/detail"
type: shield
defaults:
icon: AppGallery
- name: LG Content Store
pattern: "lgappstv\\.com/main/tvapp/detail"
type: shield
defaults:
icon: LG
- name: GitLab
pattern: "gitlab\\.com/(?P<owner>[^/]+)/(?P<repo>[^/]+)"
type: gitlab
- name: OpenRepos
pattern: "openrepos\\.net/content/"
type: shield
defaults:
label: OpenRepos