Changes

Add weblate workflow script
Line 98: Line 98:       −
If an upload is incomplete, return to translation componet, then Manage->Repository maintenance->Rescan, this will re-scan the repo and add all the po files.
+
If an upload is incomplete, return to translation component, then Manage->Repository maintenance->Rescan, this will re-scan the repo and add all the po files.
    
== Synchronization ==
 
== Synchronization ==
Line 104: Line 104:  
Weblate automatically pushes changes to Github when there's a change on weblate because of the Github pull request version control above and the Github configuration can be found in the  
 
Weblate automatically pushes changes to Github when there's a change on weblate because of the Github pull request version control above and the Github configuration can be found in the  
 
environment file, the hooks configured in the repos make it easy for weblate to pull changes from Github.
 
environment file, the hooks configured in the repos make it easy for weblate to pull changes from Github.
 +
 +
Add this workflow to {{Code|'''.github/workflows/webalte-sync.yaml'''}} in the Github repo;
 +
 +
  name: Weblate - Create PR when weblate pushes changes
 +
  on:
 +
  push:
 +
    branches:
 +
      - weblate-sync
 +
  jobs:
 +
  weblateSync:
 +
    runs-on: ubuntu-latest
 +
    steps:
 +
      - uses: actions/checkout@v4
 +
      - name: Create Pull Request
 +
        run: gh pr create --base main --head weblate-sync -t "Weblate Synchronization" --body ""
 +
        env:
 +
          GH_TOKEN: ${\{ github.token }}
 +
 +
This will automatically open a pull-request whenever weblate pushes changes to Github, be sure to drop the
 +
{{Code|\}} in {{Code|GH_TOKEN}}
 +
 
== References ==
 
== References ==
    
https://docs.weblate.org/en/latest/admin/install/docker.html#upgrading-the-docker-container
 
https://docs.weblate.org/en/latest/admin/install/docker.html#upgrading-the-docker-container
89

edits