Skip to content

Commit

Permalink
Move upload translations action to own workflow (#3130)
Browse files Browse the repository at this point in the history
  • Loading branch information
McGiverGim committed Dec 10, 2022
1 parent dbab0e0 commit 7df8d62
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,6 @@ jobs:
with:
debug_build: true

upload-translations:
if: ${{ github.ref_name == 'master' }}
name: Upload translations
needs: ci
uses: ./.github/workflows/translations-upload.yml
secrets:
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

release:
name: Nightly release
needs: ci
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/translations-upload.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
name: Translations upload to Crowdin

concurrency: upload-crowdin

on:
workflow_dispatch:
workflow_call:
secrets:
CROWDIN_PROJECT_ID:
required: true
CROWDIN_PERSONAL_TOKEN:
required: true
push:
branches:
- master
paths:
- 'locales/en/**'

jobs:
betaflight-messages-to-crowdin:
Expand All @@ -31,4 +32,3 @@ jobs:
upload_translations: false

download_translations: false

0 comments on commit 7df8d62

Please sign in to comment.