From c5f4f54fcf63acc7196b0ed498cf4fca00814de1 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 10 Apr 2026 11:39:25 +0200 Subject: [PATCH] ci: disable client generation workflow (#525) --- .github/workflows/clients-pull-request.yaml | 57 ------------ .github/workflows/clients-update-clients.yaml | 47 ---------- .github/workflows/sorting-pull-check.yaml | 86 ------------------ assets/clients/bot-config.yaml | 87 +++++++++++++++++++ 4 files changed, 87 insertions(+), 190 deletions(-) delete mode 100644 .github/workflows/clients-pull-request.yaml delete mode 100644 .github/workflows/clients-update-clients.yaml delete mode 100644 .github/workflows/sorting-pull-check.yaml create mode 100644 assets/clients/bot-config.yaml diff --git a/.github/workflows/clients-pull-request.yaml b/.github/workflows/clients-pull-request.yaml deleted file mode 100644 index 875cc7a..0000000 --- a/.github/workflows/clients-pull-request.yaml +++ /dev/null @@ -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 < comment_body.txt - - **Thank you for your contribution! ❤️** - - Here you can find a preview of the generated CLIENTS.md file: - -
- CLIENTS.md - - $(cat clients_result.md) - -
- 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: '' - - - 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 diff --git a/.github/workflows/clients-update-clients.yaml b/.github/workflows/clients-update-clients.yaml deleted file mode 100644 index b5c37bd..0000000 --- a/.github/workflows/clients-update-clients.yaml +++ /dev/null @@ -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 diff --git a/.github/workflows/sorting-pull-check.yaml b/.github/workflows/sorting-pull-check.yaml deleted file mode 100644 index aaac247..0000000 --- a/.github/workflows/sorting-pull-check.yaml +++ /dev/null @@ -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 < comment_body.txt - - **Thank you for your contribution! ❤️** - - We found sorting changes in README.md. - Here is a diff showing what changed: - -
- README.md diff - - \`\`\`diff - $(diff -u README.md README.sorted.md || true) - \`\`\` - -
- EOF - - - name: Generate Comment Body on Success - if: steps.sorting.outcome != 'failure' - run: | - cat < comment_body.txt - - **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: '' - - - 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 diff --git a/assets/clients/bot-config.yaml b/assets/clients/bot-config.yaml new file mode 100644 index 0000000..a0675cc --- /dev/null +++ b/assets/clients/bot-config.yaml @@ -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[^/]+)/(?P[^/]+)" + type: github + + - name: App Store + pattern: "apps\\.apple\\.com/.*?/id(?P\\d+)" + type: app-store + + - name: Google Play + pattern: "play\\.google\\.com/store/apps/details\\?id=(?P[\\w.]+)" + type: google-play + + - name: Flathub + pattern: "flathub\\.org/apps/(?P[\\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[^/]+)/(?P[^/]+)" + type: gitlab + + - name: OpenRepos + pattern: "openrepos\\.net/content/" + type: shield + defaults: + label: OpenRepos \ No newline at end of file