Skip to content

Commit c2d36f2

Browse files
committed
CI: Split crowdin to standalone action
1 parent 48fc3cf commit c2d36f2

File tree

2 files changed

+27
-9
lines changed

2 files changed

+27
-9
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,6 @@ jobs:
4242
- name: Build ASF-WebConfigGenerator
4343
run: npm run-script build --no-progress
4444

45-
- name: Upload latest strings for translation on Crowdin
46-
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && startsWith(matrix.os, 'ubuntu-') }}
47-
uses: crowdin/github-action@v1.20.4
48-
with:
49-
crowdin_branch_name: main
50-
config: '.github/crowdin.yml'
51-
project_id: ${{ secrets.ASF_CROWDIN_PROJECT_ID }}
52-
token: ${{ secrets.ASF_CROWDIN_API_TOKEN }}
53-
5445
- name: Upload ASF-WebConfigGenerator
5546
uses: actions/upload-artifact@v4.3.3
5647
with:

.github/workflows/crowdin-ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: ASF-WebConfigGenerator-crowdin-ci
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions: {}
9+
10+
jobs:
11+
upload:
12+
environment: main
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4.1.6
18+
with:
19+
show-progress: false
20+
21+
- name: Upload latest strings for translation on Crowdin
22+
uses: crowdin/github-action@v1.20.4
23+
with:
24+
crowdin_branch_name: main
25+
config: '.github/crowdin.yml'
26+
project_id: ${{ secrets.ASF_CROWDIN_PROJECT_ID }}
27+
token: ${{ secrets.ASF_CROWDIN_API_TOKEN }}

0 commit comments

Comments
 (0)