mirror of
				https://github.com/TeamPiped/Piped.git
				synced 2025-10-30 20:21:58 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			675 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			675 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| name: Merge Weblate translations
 | |
| 
 | |
| on:
 | |
|   pull_request:
 | |
|     types: [opened, reopened]
 | |
| 
 | |
| jobs:
 | |
|   merge:
 | |
|     runs-on: ubuntu-latest
 | |
|     steps:
 | |
|       - uses: actions/checkout@v5
 | |
|       - name: Check if en.json has been updated
 | |
|         run: |
 | |
|           if -n git diff ${{ github.event.pull_request.base.sha }}..${{ github.sha }} src/locales/en.json; then
 | |
|             exit 1
 | |
|           fi
 | |
|       - name: AutoMerge Weblate translations
 | |
|         if: github.event.pull_request.user.login == 'weblate'
 | |
|         run: gh pr merge --auto --delete-branch --merge "$PR_URL"
 | |
|         env:
 | |
|           PR_URL: ${{github.event.pull_request.html_url}}
 | |
|           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
![renovate[bot]](/assets/img/avatar_default.png)