Skip to content

Commit

Permalink
update config
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsumoto-ren committed May 3, 2024
1 parent 0ffbb43 commit 7065892
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/scheduled_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ name: Scheduled Kitsunekko sync
on:
workflow_dispatch:
schedule:
- cron: "0 */6 * * *"
- cron: "0 */2 * * *"

jobs:
run-script:
name: Synchronize with Kitsunekko
runs-on: ubuntu-latest

steps:
Expand All @@ -26,11 +27,19 @@ jobs:
--user
- name: Synchronize with kitsunekko
run: |
python -m kitsunekko_tools -c ktools.toml sync
shell: bash
env:
KITSU_API_URL: ${{ secrets.KITSUAPIURL }}
KITSU_API_KEY: ${{ secrets.KITSUAPIKEY }}
run: >-
python -m
kitsunekko_tools -c ktools.toml
sync --api
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Synchronize Mirror with Kitsunekko
commit_user_name: GitHub Actions
commit_user_email: [email protected]
commit_author: GitHub <[email protected]>
1 change: 1 addition & 0 deletions ktools.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ proxy = ""
download_root = "https://kitsunekko.net/dirlist.php?dir=subtitles/japanese/"
timeout = 120
skip_older = "5 days"
allowed_file_types = ["ssa", "ass", "srt"]

0 comments on commit 7065892

Please sign in to comment.