Skip to content

Commit e4b9fc7

Browse files
committed
fix(ci): don't make a duplicate source file
1 parent 9de7be9 commit e4b9fc7

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/crowdin_push.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ jobs:
1616
uses: actions/checkout@v4
1717

1818
- name: Copy translations
19-
run: cp src/main/resources/assets/machinelib/lang/en_us.json machinelib.json
19+
run: |
20+
mkdir tmp
21+
cp src/main/resources/assets/machinelib/lang/en_us.json tmp/machinelib.json
2022
2123
- name: Crowdin Push
2224
uses: crowdin/github-action@v2
@@ -25,7 +27,7 @@ jobs:
2527
upload_translations: false
2628
download_translations: false
2729

28-
source: 'machinelib.json'
30+
source: 'tmp/machinelib.json'
2931
translation: 'src/main/resources/assets/machinelib/lang/%locale_with_underscore%.json'
3032
project_id: ${{ secrets.CROWDIN_PROJECT_ID }}
3133
token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

.github/workflows/crowdin_sync.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ jobs:
1111
uses: actions/checkout@v4
1212

1313
- name: Copy translations
14-
run: cp src/main/resources/assets/machinelib/lang/en_us.json machinelib.json
14+
run: |
15+
mkdir tmp
16+
cp src/main/resources/assets/machinelib/lang/en_us.json tmp/machinelib.json
1517
1618
- name: Crowdin Sync
1719
uses: crowdin/github-action@v2
@@ -28,7 +30,7 @@ jobs:
2830
pull_request_labels: 'priority: low, status: ready for review, type: translation'
2931
pull_request_base_branch_name: '${{ github.event.repository.default_branch }}'
3032

31-
source: 'machinelib.json'
33+
source: 'tmp/machinelib.json'
3234
translation: 'src/main/resources/assets/machinelib/lang/%locale_with_underscore%.json'
3335
project_id: ${{ secrets.CROWDIN_PROJECT_ID }}
3436
token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

0 commit comments

Comments
 (0)