Skip to content

Commit 59daba6

Browse files
authored
Update crowdin-export.yml
1 parent 5881dad commit 59daba6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/crowdin-export.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
name: Export Crowdin
1+
name: Export translations from Crowdin
22
on: [workflow_dispatch]
33
jobs:
44
sync:
55
runs-on: ubuntu-latest
66
env:
77
TIMER_CROWDIN_AUTH: ${{ secrets.TIMER_CROWDIN_AUTH }}
88
steps:
9-
- name: Checkout
9+
- name: Checkout branch i18n-export
1010
uses: actions/checkout@v4
1111
with:
12-
fetch-depth: 0
12+
fetch-depth: 1
1313
token: ${{secrets.GITHUB_TOKEN}}
14+
ref: i18n-export
1415
- name: Test using Node.js
1516
uses: actions/setup-node@v1
1617
with:
@@ -23,7 +24,7 @@ jobs:
2324
run: ts-node ./script/crowdin/export-translation.ts
2425
- name: Commit change
2526
run: |
26-
git config --global user.name 'sheepzh'
27+
git config --global user.name 'Crowdin Bot'
2728
git config --global user.email 'returnzhy1996@outlook.com'
2829
git add .
2930
git commit -m "Export translations by Github Action"

0 commit comments

Comments
 (0)