更新Actions

This commit is contained in:
Yutou 2024-01-11 14:39:57 +08:00
parent c786d9a0e4
commit 01fa3eade2
4 changed files with 14 additions and 14 deletions

View File

@ -4,7 +4,7 @@ contact_links:
url: https://github.com/tachiyomiorg/tachiyomi/issues/new/choose
about: Issues and requests about the app itself should be opened in the tachiyomi repository instead
- name: 📦 Tachiyomi official extensions
url: https://tachiyomi.org/extensions
url: https://git.yutou233.cn/yutou/extensions
about: List of all available official extensions with download links
- name: 🖥️ Tachiyomi website
url: https://tachiyomi.org/help/

View File

@ -3,6 +3,6 @@
"config:base"
],
"includePaths": [
".github/**"
".gitea/**"
]
}

View File

@ -4,10 +4,10 @@ on:
pull_request:
paths-ignore:
- '**.md'
- '.github/workflows/issue_moderator.yml'
- '.gitea/workflows/issue_moderator.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
group: ${{ gitea.workflow }}-${{ gitea.event.pull_request.number }}
cancel-in-progress: true
env:
@ -51,7 +51,7 @@ jobs:
isIndividualChanged=1
elif [[ ${changedFile} == multisrc/* ]]; then
isMultisrcChanged=1
elif [[ ${changedFile} == .github/workflows/issue_moderator.yml ]]; then
elif [[ ${changedFile} == .gitea/workflows/issue_moderator.yml ]]; then
true
elif [[ ${changedFile} == *.md ]]; then
true

View File

@ -6,10 +6,10 @@ on:
- main
paths-ignore:
- '**.md'
- '.github/workflows/issue_moderator.yml'
- '.gitea/workflows/issue_moderator.yml'
concurrency:
group: ${{ github.workflow }}
group: ${{ gitea.workflow }}
cancel-in-progress: true
env:
@ -108,7 +108,7 @@ jobs:
- name: Upload APKs (chunk ${{ matrix.chunk }})
uses: actions/upload-artifact@v4
if: "github.repository == 'keiyoushi/extensions-source'"
if: "gitea.repository == 'keiyoushi/extensions-source'"
with:
name: "multisrc-apks-${{ matrix.chunk }}"
path: "**/*.apk"
@ -150,7 +150,7 @@ jobs:
- name: Upload APKs (chunk ${{ matrix.chunk }})
uses: actions/upload-artifact@v4
if: "github.repository == 'keiyoushi/extensions-source'"
if: "gitea.repository == 'keiyoushi/extensions-source'"
with:
name: "individual-apks-${{ matrix.chunk }}"
path: "**/*.apk"
@ -164,7 +164,7 @@ jobs:
needs:
- build_multisrc
- build_individual
if: "github.repository == 'keiyoushi/extensions-source'"
if: "gitea.repository == 'keiyoushi/extensions-source'"
runs-on: ubuntu-latest
steps:
- name: Download APK artifacts
@ -187,11 +187,11 @@ jobs:
- name: Create repo artifacts
run: |
cd main
./.github/scripts/move-apks.sh
INSPECTOR_LINK="$(curl -s "https://api.github.com/repos/tachiyomiorg/tachiyomi-extensions-inspector/releases/latest" | jq -r '.assets[0].browser_download_url')"
./.gitea/scripts/move-apks.sh
INSPECTOR_LINK="$(curl -s "https://api.gitea.com/repos/tachiyomiorg/tachiyomi-extensions-inspector/releases/latest" | jq -r '.assets[0].browser_download_url')"
curl -L "$INSPECTOR_LINK" -o ./Inspector.jar
java -jar ./Inspector.jar "apk" "output.json" "tmp"
./.github/scripts/create-repo.sh
./.gitea/scripts/create-repo.sh
- name: Checkout repo branch
uses: actions/checkout@v4
@ -204,4 +204,4 @@ jobs:
- name: Deploy repo
run: |
cd repo
../main/.github/scripts/commit-repo.sh
../main/.gitea/scripts/commit-repo.sh