From 52ba2f9af43af15c6a151754b1c4cac80fbe33dc Mon Sep 17 00:00:00 2001 From: Diwank Singh Tomer Date: Sat, 19 Oct 2024 00:35:28 -0400 Subject: [PATCH] fix(.github): Restore translate action run only on README update Signed-off-by: Diwank Singh Tomer --- .github/workflows/translate-readme.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/translate-readme.yml b/.github/workflows/translate-readme.yml index b84a97fe2..f6b28b370 100644 --- a/.github/workflows/translate-readme.yml +++ b/.github/workflows/translate-readme.yml @@ -1,6 +1,9 @@ name: Translate ReadME -on: push +on: + push: + paths: + - "README.md" jobs: readme-translator: @@ -23,13 +26,6 @@ jobs: - name: Run translator script run: python scripts/readme_translator.py - - name: Commit changes - run: | - git config --global user.name 'github-actions[bot]' - git config --global user.email 'github-actions[bot]@users.noreply.github.com' - git add README-*.md - git commit -m "chore(readme): translate README.md" - - name: Create Pull Request uses: peter-evans/create-pull-request@v7 with: