diff --git a/.github/scripts/commit-repo.sh b/.github/scripts/commit-repo.sh index c01da048c..9c603e7bc 100755 --- a/.github/scripts/commit-repo.sh +++ b/.github/scripts/commit-repo.sh @@ -11,7 +11,7 @@ if [ -n "$(git status --porcelain)" ]; then git push # Purge cached index on jsDelivr - curl https://purge.jsdelivr.net/gh/tachiyomiorg/tachiyomi-extensions@repo/index.min.json + curl https://purge.jsdelivr.net/gh/ItsLogic/ext@repo/index.min.json else echo "No changes to commit" fi diff --git a/.github/workflows/batch_close_issues.yml b/.github/workflows/batch_close_issues.yml deleted file mode 100644 index a5278f632..000000000 --- a/.github/workflows/batch_close_issues.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: "Batch close stale issues" - -on: - # Monthly - schedule: - - cron: '0 0 1 * *' - # Manual trigger - workflow_dispatch: - inputs: - -jobs: - stale: - runs-on: ubuntu-latest - steps: - - uses: actions/stale@v9 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - # Close everything older than a year - days-before-issue-stale: 365 - days-before-issue-close: 0 - exempt-issue-labels: "do-not-autoclose,Meta request" - close-issue-message: "In an effort to have a more manageable issue backlog, we're closing older requests that weren't addressed since there's a low chance of it being addressed if it hasn't already. If your request is still relevant, please [open a new request](https://github.com/tachiyomiorg/tachiyomi-extensions/issues/new/choose)." - close-issue-reason: not_planned - ascending: true - operations-per-run: 250 diff --git a/.github/workflows/build_pull_request.yml b/.github/workflows/build_pull_request.yml index bc6677254..d310bcdc4 100644 --- a/.github/workflows/build_pull_request.yml +++ b/.github/workflows/build_pull_request.yml @@ -32,7 +32,7 @@ jobs: uses: gradle/wrapper-validation-action@v1 - name: Set up JDK - uses: actions/setup-java@v4 + uses: actions/setup-java@v3 with: java-version: 11 distribution: adopt @@ -80,7 +80,7 @@ jobs: - id: generate-matrices name: Create output matrices - uses: actions/github-script@v7 + uses: actions/github-script@v6 with: script: | const numIndividualModules = process.env.NUM_INDIVIDUAL_MODULES; @@ -108,7 +108,7 @@ jobs: uses: actions/checkout@v4 - name: Set up JDK - uses: actions/setup-java@v4 + uses: actions/setup-java@v3 with: java-version: 11 distribution: adopt @@ -142,7 +142,7 @@ jobs: uses: actions/checkout@v4 - name: Set up JDK - uses: actions/setup-java@v4 + uses: actions/setup-java@v3 with: java-version: 11 distribution: adopt diff --git a/.github/workflows/build_push.yml b/.github/workflows/build_push.yml index cc8dd6bf5..32cdaf056 100644 --- a/.github/workflows/build_push.yml +++ b/.github/workflows/build_push.yml @@ -7,6 +7,7 @@ on: paths-ignore: - '**.md' - '.github/workflows/issue_moderator.yml' + workflow_dispatch: concurrency: group: ${{ github.workflow }} @@ -18,7 +19,7 @@ env: jobs: prepare: name: Prepare job - runs-on: ubuntu-latest + runs-on: self-hosted outputs: individualMatrix: ${{ steps.generate-matrices.outputs.individualMatrix }} multisrcMatrix: ${{ steps.generate-matrices.outputs.multisrcMatrix }} @@ -32,7 +33,7 @@ jobs: uses: gradle/wrapper-validation-action@v1 - name: Set up JDK - uses: actions/setup-java@v4 + uses: actions/setup-java@v3 with: java-version: 11 distribution: adopt @@ -52,7 +53,7 @@ jobs: - id: generate-matrices name: Create output matrices - uses: actions/github-script@v7 + uses: actions/github-script@v6 with: script: | const numIndividualModules = process.env.NUM_INDIVIDUAL_MODULES; @@ -71,7 +72,7 @@ jobs: build_multisrc: name: Build multisrc modules needs: prepare - runs-on: ubuntu-latest + runs-on: self-hosted strategy: matrix: ${{ fromJSON(needs.prepare.outputs.multisrcMatrix) }} steps: @@ -79,7 +80,7 @@ jobs: uses: actions/checkout@v4 - name: Set up JDK - uses: actions/setup-java@v4 + uses: actions/setup-java@v3 with: java-version: 11 distribution: adopt @@ -102,13 +103,13 @@ jobs: CI_CHUNK_NUM: ${{ matrix.chunk }} ALIAS: ${{ secrets.ALIAS }} KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }} - KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} + KEY_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }} with: arguments: assembleRelease - name: Upload APKs (chunk ${{ matrix.chunk }}) - uses: actions/upload-artifact@v4 - if: "github.repository == 'tachiyomiorg/tachiyomi-extensions'" + uses: actions/upload-artifact@v3 + if: "github.repository == 'ItsLogic/ext'" with: name: "multisrc-apks-${{ matrix.chunk }}" path: "**/*.apk" @@ -120,7 +121,7 @@ jobs: build_individual: name: Build individual modules needs: prepare - runs-on: ubuntu-latest + runs-on: self-hosted strategy: matrix: ${{ fromJSON(needs.prepare.outputs.individualMatrix) }} steps: @@ -128,7 +129,7 @@ jobs: uses: actions/checkout@v4 - name: Set up JDK - uses: actions/setup-java@v4 + uses: actions/setup-java@v3 with: java-version: 11 distribution: adopt @@ -144,13 +145,13 @@ jobs: CI_CHUNK_NUM: ${{ matrix.chunk }} ALIAS: ${{ secrets.ALIAS }} KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }} - KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} + KEY_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }} with: arguments: assembleRelease - name: Upload APKs (chunk ${{ matrix.chunk }}) - uses: actions/upload-artifact@v4 - if: "github.repository == 'tachiyomiorg/tachiyomi-extensions'" + uses: actions/upload-artifact@v3 + if: "github.repository == 'ItsLogic/ext'" with: name: "individual-apks-${{ matrix.chunk }}" path: "**/*.apk" @@ -164,16 +165,16 @@ jobs: needs: - build_multisrc - build_individual - if: "github.repository == 'tachiyomiorg/tachiyomi-extensions'" + if: "github.repository == 'ItsLogic/ext'" runs-on: ubuntu-latest steps: - name: Download APK artifacts - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v3 with: path: ~/apk-artifacts - name: Set up JDK - uses: actions/setup-java@v4 + uses: actions/setup-java@v3 with: java-version: 17 distribution: adopt diff --git a/.github/workflows/issue_moderator.yml b/.github/workflows/issue_moderator.yml deleted file mode 100644 index 5e1de2b72..000000000 --- a/.github/workflows/issue_moderator.yml +++ /dev/null @@ -1,73 +0,0 @@ -name: Issue moderator - -on: - issues: - types: [opened, edited, reopened] - issue_comment: - types: [created] - -jobs: - autoclose: - runs-on: ubuntu-latest - steps: - - name: Moderate issues - uses: tachiyomiorg/issue-moderator-action@v2 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - duplicate-label: Duplicate - - duplicate-check-enabled: true - duplicate-check-labels: | - ["Source request", "Domain changed"] - - existing-check-enabled: true - existing-check-labels: | - ["Source request", "Domain changed"] - - auto-close-rules: | - [ - { - "type": "body", - "regex": ".*DELETE THIS SECTION IF YOU HAVE READ AND ACKNOWLEDGED IT.*", - "message": "The acknowledgment section was not removed." - }, - { - "type": "body", - "regex": ".*\\* (Tachiyomi version|Android version|Device): \\?.*", - "message": "Requested information in the template was not filled out." - }, - { - "type": "title", - "regex": ".*(Source name|Short description).*", - "message": "You did not fill out the description in the title." - }, - { - "type": "both", - "regex": ".*(hq\\s*dragon|manga\\s*host|supermangas|superhentais|union\\s*mangas|yes\\s*mangas|manhuascan|manhwahot|leitor\\.?net|manga\\s*livre|tsuki\\s*mangas|manga\\s*yabu|mangas\\.in|mangas\\.pw|hentaikai|toptoon\\+?|colamanhua|mangadig|hitomi\\.la|copymanga|neox|nexo|1manga\\.co|mangafox\\.fun|mangahere\\.onl|mangakakalot\\.fun|manganel(?!o)|mangaonline\\.fun|mangatoday|manga\\.town|onemanga\\.info|koushoku|ksk\\.moe|comikey|leercapitulo|c[uứ]u\\s*truy[eệ]n|day\\s*comics?|reaper\\s*scans|constellar\\s*scans|mode\\s*scanlator|bakai|japscan|izakaya|blackout\\s*comics|anchira).*", - "ignoreCase": true, - "labels": ["invalid"], - "message": "{match} will not be added back as it is too difficult to maintain. Read [this](https://github.com/tachiyomiorg/tachiyomi-extensions/blob/master/REMOVED_SOURCES.md) for more information." - }, - { - "type": "both", - "regex": ".*(komiktap|gourmet\\s*scans|mangawow|hikari\\s*scans|knightnoscanlations|mangasy|nartag|xxx\\s*yaoi|luminous|hunters\\s*scan|reset(?:\\s*|-)scan|astra\\s*scans|manga(?:-|\\s*)pro|shinobiscans|plot ?twist ?no ?fansub(?: ?scans?)?|plot-twistnf-scans(?:\\.com)?|mhscans|aresmanga|realm ?scans?|mono ?manga|dat(?:\\s*|-)?gar\\s*scan|remangas|moon ?daisy(?: scans?)?).*", - "ignoreCase": true, - "labels": ["invalid"], - "message": "{match} will not be added back as the scanlator team has requested it to be removed. Read [this](https://github.com/tachiyomiorg/tachiyomi-extensions/blob/master/REMOVED_SOURCES.md) for more information." - }, - { - "type": "both", - "regex": ".*(?:fail(?:ed|ure|s)?|can\\s*(?:no|')?t|(?:not|un).*able|(?