File tree 1 file changed +6
-7
lines changed
1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 1
1
name : push-translations
2
2
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
4
4
on :
5
5
push :
6
6
branches :
7
7
- main
8
+ paths :
9
+ - ' **.md'
10
+ - ' _*.yml'
8
11
9
12
permissions :
10
13
contents : write
@@ -34,14 +37,10 @@ jobs:
34
37
sphinx-intl update -p _build/gettext
35
38
rm conf.py
36
39
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
39
41
run : |
40
42
git config user.name github-actions
41
43
git config user.email [email protected]
42
- git checkout -b translation_file_update
43
44
git add .
44
45
git commit -m "auto generated translation file updates"
45
- git push -u origin translation_file_update
46
-
47
-
46
+ git push
You can’t perform that action at this time.
0 commit comments