Skip to content

Commit 5abceeb

Browse files
authored
fix(ci): widen translations.yml path filters to match job inputs (#224)
.github/scripts/check-translation*.mjs cannot cross a path separator, so it never matched .github/scripts/lib/derived-locales.mjs -- which #216 introduced and which two of the three check-translation* scripts import. A PR editing only that shared module skipped the whole Ownership and freshness job: no freshness report, no corpus-wide output gate. Widened to .github/scripts/**, matching what turbo.json already declares as the test task's input for that directory. The every-filter pass the card asked for found a second gap on the push trigger: it filtered on content/docs/** alone, but only the Ownership step is gated to pull_request. Freshness, Output validator self-test and Output run on push too, reading apps/docs/lib/i18n.ts and all three scripts. Both added. Assessed and left alone: ci.yml carries no paths filter, correctly -- its jobs' combined inputs span nearly every top-level directory, so a filter matching that footprint would be indistinguishable from none. deploy-docs.yml has no gap; every config its build touches lives under apps/docs/**, and apps/docs/tsconfig.json has no extends. Matching proved with minimatch as an oracle rather than by eye, including negative controls. Newly-triggered paths reported and intended. Closes #221
1 parent cae6bf5 commit 5abceeb

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

‎.github/workflows/translations.yml‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,24 @@ on:
66
paths:
77
- 'content/docs/**'
88
- 'apps/docs/lib/i18n.ts'
9-
- '.github/scripts/check-translation*.mjs'
9+
# Was 'check-translation*.mjs' — a `*` never crosses `/`, so it missed
10+
# '.github/scripts/lib/derived-locales.mjs', imported by both
11+
# check-translations.mjs and check-translation-output.mjs (#221). Widened
12+
# to the whole directory to match what turbo.json already declares as
13+
# the `test` task's input for this tree, and to cover any future script
14+
# (or nested lib/) the two checks below start importing.
15+
- '.github/scripts/**'
1016
- '.github/workflows/translations.yml'
1117
push:
1218
branches: [main]
1319
paths:
20+
# Freshness / self-test / Output run on push too (only the Ownership
21+
# step is pull_request-only, see the `if:` below) and read the same
22+
# i18n.ts + scripts as the pull_request job — so this needs the same
23+
# two entries, not just the corpus path.
1424
- 'content/docs/**'
25+
- 'apps/docs/lib/i18n.ts'
26+
- '.github/scripts/**'
1527
workflow_dispatch:
1628

1729
permissions:

0 commit comments

Comments
 (0)