File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 12
12
extract_strings :
13
13
runs-on : ubuntu-latest
14
14
env :
15
- PYGETTEXT_DOMAIN : ' ardupilot_methodic_configurator'
16
- PYGETTEXT_LOCALEDIR : ' ${PYGETTEXT_DOMAIN} /locale'
15
+ PYGETTEXT_DOMAIN : ardupilot_methodic_configurator
16
+ PYGETTEXT_LOCALEDIR : ardupilot_methodic_configurator /locale
17
17
18
18
steps :
19
19
- uses : actions/checkout@v4
@@ -29,15 +29,15 @@ jobs:
29
29
30
30
- name : Extract strings
31
31
run : |
32
- pygettext3 -d ${ PYGETTEXT_DOMAIN} -o ${ PYGETTEXT_LOCALEDIR}/${ PYGETTEXT_DOMAIN} .pot $(git ls-files '*.py')
32
+ pygettext3 -d $PYGETTEXT_DOMAIN -o $PYGETTEXT_LOCALEDIR/$ PYGETTEXT_DOMAIN.pot $(git ls-files '*.py') || exit 1
33
33
34
34
- name : Commit changes
35
35
env :
36
36
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
37
37
run : |
38
38
git config user.email "[email protected] "
39
39
git config user.name "GitHub Actions"
40
- git add ${ PYGETTEXT_LOCALEDIR}/${ PYGETTEXT_DOMAIN} .pot
40
+ git add $PYGETTEXT_LOCALEDIR/$ PYGETTEXT_DOMAIN.pot
41
41
if [ -n "$(git status --porcelain)" ]; then
42
42
git commit -m "Extracted i18n strings"
43
43
git push
You can’t perform that action at this time.
0 commit comments