Skip to content

Commit 1481083

Browse files
authored
fix: hotfix i18n folder for workflow
Signed-off-by: Claudio W <cwunder@gnome.org>
1 parent dc0f1de commit 1481083

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/translations-pr.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
paths:
1111
- 'pages/**'
1212
- '!pages/en/**'
13+
- 'i18n/locales/*.json'
14+
- '!i18n/locales/en.json'
1315

1416
permissions:
1517
# This permission is required by `stefanzweifel/git-auto-commit-action`
@@ -68,12 +70,12 @@ jobs:
6870
- name: Run `npx lint:md --fix`
6971
# This runs a specific version of ESLint with only the Translation Pages Globbing
7072
# This avoid that unrelated changes get linted/modified within this PR
71-
run: npx eslint "pages/**/*.md?(x)" --fix
73+
run: npx eslint "{pages,i18n}/**/*.{json,md,mdx}" --fix
7274

7375
- name: Run `npx prettier --write`
7476
# This runs a specific version of Prettier with only the Translation Pages Globbing
7577
# This avoid that unrelated changes get prettied/modified within this PR
76-
run: npx prettier "pages/**/*.md?(x)" --check --write
78+
run: npx prettier "{pages,i18n}/**/*.{json,md,mdx}" --check --write
7779

7880
- name: Push Changes back to Pull Request
7981
uses: stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a

0 commit comments

Comments
 (0)