diff --git a/.github/workflows/update-translations.yml b/.github/workflows/update-translations.yml index e61149e6b5..c1b08aba2a 100644 --- a/.github/workflows/update-translations.yml +++ b/.github/workflows/update-translations.yml @@ -3,6 +3,7 @@ permissions: contents: write pull-requests: write on: + pull_request: schedule: - cron: "0 10 * * 1" workflow_dispatch: @@ -12,13 +13,17 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 + ref: ${{ github.event.pull_request.head.sha }} - name: Fetch and merge from Weblate # The commit message is generated in Weblate; see https://hosted.weblate.org/addon/17163/ run: | + git log --oneline --graph --all -n5 git remote add weblate https://hosted.weblate.org/git/zulip/zulip-flutter/ git fetch weblate - git merge --ff-only weblate/main + git merge weblate/main - name: Clone Flutter SDK # TODO(#1204) reinstate shallow clone with --depth=1000 and its corresponding comment here