Skip to content

Commit 7df8d62

Browse files
authored
Move upload translations action to own workflow (#3130)
1 parent dbab0e0 commit 7df8d62

File tree

2 files changed

+7
-16
lines changed

2 files changed

+7
-16
lines changed

.github/workflows/nightly.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,6 @@ jobs:
2727
with:
2828
debug_build: true
2929

30-
upload-translations:
31-
if: ${{ github.ref_name == 'master' }}
32-
name: Upload translations
33-
needs: ci
34-
uses: ./.github/workflows/translations-upload.yml
35-
secrets:
36-
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
37-
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
38-
3930
release:
4031
name: Nightly release
4132
needs: ci

.github/workflows/translations-upload.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
name: Translations upload to Crowdin
22

3+
concurrency: upload-crowdin
4+
35
on:
46
workflow_dispatch:
5-
workflow_call:
6-
secrets:
7-
CROWDIN_PROJECT_ID:
8-
required: true
9-
CROWDIN_PERSONAL_TOKEN:
10-
required: true
7+
push:
8+
branches:
9+
- master
10+
paths:
11+
- 'locales/en/**'
1112

1213
jobs:
1314
betaflight-messages-to-crowdin:
@@ -31,4 +32,3 @@ jobs:
3132
upload_translations: false
3233

3334
download_translations: false
34-

0 commit comments

Comments
 (0)