Skip to content

Commit 7f3b619

Browse files
authored
Update push-translations.yml
1 parent e3b8635 commit 7f3b619

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/push-translations.yml

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
name: push-translations
22

3-
# Only run this when the master branch changes
3+
# Only run this when the main branch changes a markdown file or a top level config file
44
on:
55
push:
66
branches:
77
- main
8+
paths:
9+
- '**.md'
10+
- '_*.yml'
811

912
permissions:
1013
contents: write
@@ -34,14 +37,10 @@ jobs:
3437
sphinx-intl update -p _build/gettext
3538
rm conf.py
3639
37-
# Make a PR, because right now I don't feel like setting up the conditional push patterns to make this not recursive
38-
- name: Make a PR
40+
- name: Push translations
3941
run: |
4042
git config user.name github-actions
4143
git config user.email [email protected]
42-
git checkout -b translation_file_update
4344
git add .
4445
git commit -m "auto generated translation file updates"
45-
git push -u origin translation_file_update
46-
47-
46+
git push

0 commit comments

Comments
 (0)