Line 102:
Line 102:
== Synchronization ==
== Synchronization ==
−
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 Git version control above, 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/weblate-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}}
== Backups ==
== Backups ==