Merge pull request #25956 from sarbes/shader-clip-fix #139
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This GitHub action updates the translation (msgmrge) based on the changed source language file | |
name: Update Weblate translations | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- "addons/resource.language.en_gb/resources/strings.po" | |
- ".github/workflows/gh-action-weblate-upload.yml" | |
permissions: | |
contents: read | |
jobs: | |
weblate: | |
if: github.repository == 'xbmc/xbmc' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Update Weblate | |
env: | |
TOKEN: "${{ secrets.WEBLATE_TOKEN }}" | |
run: | | |
curl \ | |
--form file=@addons/resource.language.en_gb/resources/strings.po \ | |
--form method=source \ | |
-H "Authorization: Token $TOKEN" \ | |
https://kodi.weblate.cloud/api/translations/kodi-core/kodi-main/en_gb/file/ |