Skip to content

Commit cfbf01f

Browse files
committed
feat(crowdin): GH flow test
1 parent 0762dfd commit cfbf01f

1 file changed

Lines changed: 42 additions & 42 deletions

File tree

.github/workflows/ci_cd_test.yml

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -56,56 +56,56 @@ jobs:
5656
concurrency:
5757
group: ci-${{ github.ref }}
5858
cancel-in-progress: true
59-
steps:
60-
- name: Summoning the GitHub App Token
61-
uses: actions/create-github-app-token@v2
62-
id: generate-token
63-
with:
64-
app-id: ${{ secrets.GH_APP_ID }}
65-
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
66-
permission-contents: write
59+
steps:
60+
- name: Summoning the GitHub App Token
61+
uses: actions/create-github-app-token@v2
62+
id: generate-token
63+
with:
64+
app-id: ${{ secrets.GH_APP_ID }}
65+
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
66+
permission-contents: write
6767

68-
- name: Checkout
69-
uses: actions/checkout@v4
68+
- name: Checkout
69+
uses: actions/checkout@v4
7070

71-
- name: Upload Sources to Crowdin
72-
uses: crowdin/github-action@v2
73-
with:
74-
upload_sources: true
75-
env:
76-
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
77-
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
71+
- name: Upload Sources to Crowdin
72+
uses: crowdin/github-action@v2
73+
with:
74+
upload_sources: true
75+
env:
76+
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
77+
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
7878

79-
- name: Pre-Translate
80-
uses: crowdin/github-action@v2
81-
with:
82-
command: 'pre-translate'
83-
command_args: '--method ai --ai-prompt=${{ secrets.CROWDIN_AI_PROMPT_ID }}'
84-
env:
85-
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
86-
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
79+
- name: Pre-Translate
80+
uses: crowdin/github-action@v2
81+
with:
82+
command: 'pre-translate'
83+
command_args: '--method ai --ai-prompt=${{ secrets.CROWDIN_AI_PROMPT_ID }}'
84+
env:
85+
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
86+
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
8787

88-
- name: Download Bundles
89-
uses: crowdin/github-action@v2
90-
with:
91-
upload_sources: false
92-
upload_translations: false
93-
download_translations: false
94-
download_bundle: 6
95-
skip_untranslated_strings: true
96-
create_pull_request: false
97-
localization_branch_name: feat/crowdin
98-
commit_message: 'feat(i18n): update translations'
99-
env:
100-
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
101-
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
102-
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
88+
- name: Download Bundles
89+
uses: crowdin/github-action@v2
90+
with:
91+
upload_sources: false
92+
upload_translations: false
93+
download_translations: false
94+
download_bundle: 6
95+
skip_untranslated_strings: true
96+
create_pull_request: false
97+
localization_branch_name: feat/crowdin
98+
commit_message: 'feat(i18n): update translations'
99+
env:
100+
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
101+
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
102+
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
103103

104104
test:
105-
needs: localize
105+
needs: [files-changed, localize]
106106
if: ${{ always() &&
107107
(needs.files-changed.outputs.client_source == 'true' ||
108-
needs.files-changed.outputs.workflows == 'true'))
108+
needs.files-changed.outputs.workflows == 'true')
109109
}}
110110
name: The Interrogation Room (Test)
111111
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)