File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 workflow_dispatch :
77
88jobs :
9+ check-secrets :
10+ runs-on : ubuntu-latest
11+ outputs :
12+ has-deploy-token : ${{ steps.check.outputs.has-deploy-token }}
13+ steps :
14+ - name : Check required secrets
15+ id : check
16+ run : |
17+ if [ -z "$GH_PAGES_TOKEN" ]; then
18+ echo "has-deploy-token=false" >> $GITHUB_OUTPUT
19+ echo "::warning::GH_PAGES_TOKEN is not set, skipping documentation deployment."
20+ else
21+ echo "has-deploy-token=true" >> $GITHUB_OUTPUT
22+ fi
23+ env :
24+ GH_PAGES_TOKEN : ${{ secrets.GH_PAGES_TOKEN }}
25+
926 Build :
1027 runs-on : ubuntu-latest
28+ needs : check-secrets
29+ if : ${{ needs.check-secrets.outputs.has-deploy-token == 'true' }}
1130
1231 steps :
1332
1736 fetch-depth : 0
1837 submodules : ' true'
1938
39+ - name : Check Crowdin secrets
40+ id : crowdin-check
41+ run : |
42+ if [ -z "$CROWDIN_PROJECT_ID" ] || [ -z "$CROWDIN_PERSONAL_TOKEN" ]; then
43+ echo "available=false" >> $GITHUB_OUTPUT
44+ echo "::warning::Crowdin secrets not set, skipping translation download."
45+ else
46+ echo "available=true" >> $GITHUB_OUTPUT
47+ fi
48+ env :
49+ CROWDIN_PROJECT_ID : ${{ secrets.CROWDIN_PROJECT_ID }}
50+ CROWDIN_PERSONAL_TOKEN : ${{ secrets.CROWDIN_TOKEN }}
51+
2052 - name : Download translations from crowdin
21- uses : crowdin/github-action@v1.6.0
53+ if : ${{ steps.crowdin-check.outputs.available == 'true' }}
54+ uses : crowdin/github-action@v2.4.0
2255 with :
2356 upload_sources : false
2457 upload_translations : false
You can’t perform that action at this time.
0 commit comments