From 5cc3e46eee9cacddb5177f3b21ffe8547412e1e3 Mon Sep 17 00:00:00 2001 From: KoJIT2009 Date: Mon, 6 Nov 2023 00:59:07 +0500 Subject: [PATCH] Fix auto_translate.yml (#628) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Что этот PR делает Фикс github action обновляющего файл с переводами ## Changelog :cl: fix: Фикс github action обновляющего файл с переводами /:cl: --- .github/workflows/auto_translate.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto_translate.yml b/.github/workflows/auto_translate.yml index 4258ce0eddc8..7564fa04a6f5 100644 --- a/.github/workflows/auto_translate.yml +++ b/.github/workflows/auto_translate.yml @@ -35,11 +35,11 @@ jobs: - name: Create temporary branch run: | - git checkout -b translate_tmp $(git log -n 1 --pretty=format:%H origin/translate -- tools/translator/ss220replace.json) + git checkout -b translate_tmp ${{ github.sha }}^ - name: Apply PR translation run: | - git diff ..$(git log -n 1 --pretty=format:%H origin/translate) | git apply + git diff ${{ github.sha }}^..${{ github.sha }} | git apply - name: 'Generate Translation' run: |