diff --git a/.github/workflows/translation.yml b/.github/workflows/translation.yml index ccfa57a40..22e7a170f 100644 --- a/.github/workflows/translation.yml +++ b/.github/workflows/translation.yml @@ -30,9 +30,13 @@ jobs: run: | git config --global user.name "github-actions" git config --global user.email "github-actions@github.com" - git add . - git commit -m "po/mo updates" - git push + if [[ -n $(git status --porcelain) ]]; then + git add . + git commit -m "po/mo updates" + git push + else + echo "No changes to commit." + fi env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}