diff --git a/.github/workflows/auto_translate.yml b/.github/workflows/auto_translate.yml index 2a504fbf9e2b..fc677c24bcae 100644 --- a/.github/workflows/auto_translate.yml +++ b/.github/workflows/auto_translate.yml @@ -31,11 +31,8 @@ jobs: - name: Create temporary branch run: | - git branch -f translate_tmp - git checkout translate_tmp - git branch + git checkout -b translate_tmp git reset --hard origin/master - - name: Apply existing translation run: | git fetch origin translate diff --git a/tools/translator/converter.py b/tools/translator/converter.py index a7e2cb8cd93b..0a0b79f644f3 100644 --- a/tools/translator/converter.py +++ b/tools/translator/converter.py @@ -1,6 +1,6 @@ import git import json -BUILD_PATH = "./../../" +BUILD_PATH = "./" repo = git.Repo(BUILD_PATH)