mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-04 07:05:41 +00:00 
			
		
		
		
	
							
								
								
									
										30
									
								
								.github/workflows/translations.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										30
									
								
								.github/workflows/translations.yaml
									
									
									
									
										vendored
									
									
								
							@@ -13,10 +13,11 @@ permissions:
 | 
				
			|||||||
  contents: read
 | 
					  contents: read
 | 
				
			||||||
 | 
					
 | 
				
			||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
  build:
 | 
					  synchronize-with-crowdin:
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
    permissions:
 | 
					    permissions:
 | 
				
			||||||
      contents: write
 | 
					      contents: write
 | 
				
			||||||
 | 
					      pull-requests: write
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    env:
 | 
					    env:
 | 
				
			||||||
      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
					      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
				
			||||||
@@ -39,16 +40,19 @@ jobs:
 | 
				
			|||||||
          apt-dependency: gettext
 | 
					          apt-dependency: gettext
 | 
				
			||||||
      - name: Make Translations
 | 
					      - name: Make Translations
 | 
				
			||||||
        run: invoke translate
 | 
					        run: invoke translate
 | 
				
			||||||
      - name: Commit files
 | 
					      - name: crowdin action
 | 
				
			||||||
        run: |
 | 
					        uses: crowdin/github-action@6ed209d411599a981ccb978df3be9dc9b8a81699 # pin@v2
 | 
				
			||||||
          git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
 | 
					 | 
				
			||||||
          git config --local user.name "github-actions[bot]"
 | 
					 | 
				
			||||||
          git checkout -b l10_local
 | 
					 | 
				
			||||||
          git add "*.po"
 | 
					 | 
				
			||||||
          git commit -m "updated translation base"
 | 
					 | 
				
			||||||
      - name: Push changes
 | 
					 | 
				
			||||||
        uses: ad-m/github-push-action@d91a481090679876dfc4178fef17f286781251df # pin@v0.8.0
 | 
					 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          github_token: ${{ secrets.GITHUB_TOKEN }}
 | 
					          upload_sources: true
 | 
				
			||||||
          branch: l10
 | 
					          upload_translations: false
 | 
				
			||||||
          force: true
 | 
					          download_translations: true
 | 
				
			||||||
 | 
					          localization_branch_name: l10_crowdin
 | 
				
			||||||
 | 
					          create_pull_request: true
 | 
				
			||||||
 | 
					          pull_request_title: 'New Crowdin updates'
 | 
				
			||||||
 | 
					          pull_request_body: 'New Crowdin translations by [Crowdin GH Action](https://github.com/crowdin/github-action)'
 | 
				
			||||||
 | 
					          pull_request_base_branch_name: 'l10'
 | 
				
			||||||
 | 
					          pull_request_labels: 'translations'
 | 
				
			||||||
 | 
					        env:
 | 
				
			||||||
 | 
					          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
				
			||||||
 | 
					          CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
 | 
				
			||||||
 | 
					          CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user