Skip to content

Commit 8e236b2

Browse files
committed
chore: trigger translate docs only by workflow_dispatch
1 parent bb0f83e commit 8e236b2

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/translate-docs.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
name: Translate Documentation
22

33
on:
4-
schedule:
5-
- cron:
6-
'0 20 * * *' # Daily at 20:00 UTC (DeepSeek API off-peak pricing window 16:30-00:30 UTC)
7-
# Pacific Time: 1:00 PM PDT / 12:00 PM PST
8-
# Off-peak window in PT: ~9:30 AM to 5:30 PM PDT / ~8:30 AM to 4:30 PM PST
9-
push:
10-
# Run when merging from official repo to check if translations are outdated
11-
branches:
12-
- main
4+
# schedule:
5+
# - cron:
6+
# '0 20 * * *' # Daily at 20:00 UTC (DeepSeek API off-peak pricing window 16:30-00:30 UTC)
7+
# # Pacific Time: 1:00 PM PDT / 12:00 PM PST
8+
# # Off-peak window in PT: ~9:30 AM to 5:30 PM PDT / ~8:30 AM to 4:30 PM PST
9+
# push:
10+
# # Run when merging from official repo to check if translations are outdated
11+
# branches:
12+
# - main
1313
workflow_dispatch: # Allow manual triggering
1414
inputs:
1515
pr_branch:
@@ -31,7 +31,7 @@ jobs:
3131
check-api-key:
3232
runs-on: ubuntu-latest
3333
# Run when manually triggered OR scheduled OR when the commit message contains "Merge pull request"
34-
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || contains(github.event.head_commit.message, 'Merge pull request') }}
34+
# if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || contains(github.event.head_commit.message, 'Merge pull request') }}
3535
outputs:
3636
api_key_exists: ${{ steps.check-api-key.outputs.api_key_exists }}
3737
steps:

0 commit comments

Comments
 (0)