Skip to content

Commit f5cbd94

Browse files
committed
FIX: string extraction workflow expansion of env vars
1 parent 335cafd commit f5cbd94

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/i18n-extract.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
extract_strings:
1313
runs-on: ubuntu-latest
1414
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
1717

1818
steps:
1919
- uses: actions/checkout@v4
@@ -29,15 +29,15 @@ jobs:
2929
3030
- name: Extract strings
3131
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
3333
3434
- name: Commit changes
3535
env:
3636
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3737
run: |
3838
git config user.email "[email protected]"
3939
git config user.name "GitHub Actions"
40-
git add ${PYGETTEXT_LOCALEDIR}/${PYGETTEXT_DOMAIN}.pot
40+
git add $PYGETTEXT_LOCALEDIR/$PYGETTEXT_DOMAIN.pot
4141
if [ -n "$(git status --porcelain)" ]; then
4242
git commit -m "Extracted i18n strings"
4343
git push

0 commit comments

Comments
 (0)