feat: change auto-i18n workflow to run daily instead of weekly (#12899)

### What this PR does

Before this PR:
- Auto i18n workflow runs weekly on Sundays at 00:00 UTC
- Workflow name was "Auto I18N Weekly"

After this PR:
- Auto i18n workflow runs daily at 00:00 UTC
- Workflow name is "Auto I18N Daily"

### Why we need it and why it was done in this way

The following tradeoffs were made:
- More frequent syncs mean more PR noise, but translations stay more
up-to-date

The following alternatives were considered:
- Keeping weekly schedule: translations may lag behind source changes
- Running on weekdays only: skipped in favor of daily for simplicity

### Breaking changes

None

### Special notes for your reviewer

None

### Checklist

- [x] PR: The PR description is expressive enough and will help future
contributors
- [x] Code: [Write code that humans can
understand](https://en.wikiquote.org/wiki/Martin_Fowler#code-for-humans)
and [Keep it simple](https://en.wikipedia.org/wiki/KISS_principle)
- [x] Refactor: You have [left the code cleaner than you found it (Boy
Scout
Rule)](https://learning.oreilly.com/library/view/97-things-every/9780596809515/ch08.html)
- [x] Upgrade: Impact of this change on upgrade flows was considered and
addressed if required
- [x] Documentation: A [user-guide update](https://docs.cherry-ai.com)
was considered and is present (link) or not required. You want a
user-guide update if it's a user facing feature.

### Release note

```release-note
Change auto-i18n workflow schedule from weekly to daily for more frequent translation synchronization.
```

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Phantom 2026-02-13 00:26:50 +08:00 committed by GitHub
parent 40317cd3c8
commit ca7c85139d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,4 @@
name: Auto I18N Weekly
name: Auto I18N Daily
env:
TRANSLATION_API_KEY: ${{ secrets.TRANSLATE_API_KEY }}
@ -8,9 +8,9 @@ env:
on:
schedule:
# Runs at 00:00 UTC every Sunday.
# This corresponds to 08:00 AM UTC+8 (Beijing time) every Sunday.
- cron: "0 0 * * 0"
# Runs at 00:00 UTC every day.
# This corresponds to 08:00 AM UTC+8 (Beijing time) every day.
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
@ -75,15 +75,15 @@ jobs:
uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.GITHUB_TOKEN }} # Use the built-in GITHUB_TOKEN for bot actions
commit-message: "feat(bot): Weekly automated script run"
title: "🤖 Weekly Auto I18N Sync: ${{ env.CURRENT_DATE }}"
commit-message: "feat(bot): Daily automated script run"
title: "🤖 Daily Auto I18N Sync: ${{ env.CURRENT_DATE }}"
body: |
This PR includes changes generated by the weekly auto i18n.
This PR includes changes generated by the daily auto i18n.
Review the changes before merging.
---
_Generated by the automated weekly workflow_
branch: "auto-i18n-weekly-${{ github.run_id }}" # Unique branch name
_Generated by the automated daily workflow_
branch: "auto-i18n-daily-${{ github.run_id }}" # Unique branch name
base: "main" # Or 'develop', set your base branch
delete-branch: true # Delete the branch after merging or closing the PR