Skip to content

Commit

Permalink
fix(.github): Restore translate action run only on README update
Browse files Browse the repository at this point in the history
Signed-off-by: Diwank Singh Tomer <[email protected]>
  • Loading branch information
creatorrr committed Oct 19, 2024
1 parent df409ed commit 52ba2f9
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/translate-readme.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Translate ReadME

on: push
on:
push:
paths:
- "README.md"

jobs:
readme-translator:
Expand All @@ -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:
Expand Down

0 comments on commit 52ba2f9

Please sign in to comment.