1 # This GitHub action updates the translation (msgmrge) based on the changed source language file
3 name: Update Weblate translations
10 - "addons/resource.language.en_gb/resources/strings.po"
11 - ".github/workflows/gh-action-weblate-upload.yml"
17 if: github.repository == 'xbmc/xbmc'
18 runs-on: ubuntu-latest
21 uses: actions/checkout@v2.3.2
24 - name: Update Weblate
26 TOKEN: "${{ secrets.WEBLATE_TOKEN }}"
29 --form file=@addons/resource.language.en_gb/resources/strings.po \
30 --form method=source \
31 -H "Authorization: Token $TOKEN" \
32 https://kodi.weblate.cloud/api/translations/kodi-core/kodi-main/en_gb/file/