diff --git a/.github/workflows/translation-sync.yml b/.github/workflows/translation-sync.yml index 078032eedab..de4f273257e 100644 --- a/.github/workflows/translation-sync.yml +++ b/.github/workflows/translation-sync.yml @@ -36,8 +36,7 @@ jobs: echo 'Fetch Crowdin Master Translation ⬇️' crowdin download -b master -T ${{ secrets.CROWDIN_API_KEY }} && crowdin download -b master -l zh-CN -T ${{ secrets.CROWDIN_API_KEY }} - echo "GIT STATUS: $(git status --porcelain)" - + if [ -n "$(git status --porcelain)" ]; then # New strings are added, create a PR to update the master @@ -49,6 +48,7 @@ jobs: # Commit the newly downloaded files cd $(git rev-parse --show-toplevel) + echo "GIT STATUS: $(git status --porcelain)" git add . echo "Checking out new branch [$branch_name]"