diff --git a/.github/workflows/update-translations.yml b/.github/workflows/update-translations.yml index 0e159f6507..7c04ceec85 100644 --- a/.github/workflows/update-translations.yml +++ b/.github/workflows/update-translations.yml @@ -11,7 +11,17 @@ jobs: update-translations: runs-on: ubuntu-latest steps: + - name: Trigger a rebase in Weblate + run: | + pip install wlc + wlc --url https://hosted.weblate.org/api/ --key $WEBLATE_API_KEY pull zulip/zulip-flutter + with: + WEBLATE_API_KEY: ${{ secrets.WEBLATE_API_KEY }} + - uses: actions/checkout@v4 + with: + # Enough such that even a still-out-of-date weblate will have shared history + fetch-depth: 50 - name: Fetch and merge from Weblate # The commit message is generated in Weblate; see https://hosted.weblate.org/addon/17163/