Skip to content

Commit a2a5e38

Browse files
ci: check locale source freshness
1 parent d961e4d commit a2a5e38

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

‎.github/workflows/validate.yml‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,19 @@ jobs:
2424
- run: python tests/test_generated_views.py
2525
- run: python tests/test_markdown_links.py
2626
- run: python tests/test_locale_invariants.py
27+
- name: Check localized source freshness
28+
env:
29+
BEFORE: ${{ github.event.before }}
30+
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
31+
run: |
32+
if [ "${{ github.event_name }}" = "pull_request" ]; then
33+
base="${{ github.event.pull_request.base.sha }}"
34+
elif [ "$BEFORE" = "0000000000000000000000000000000000000000" ]; then
35+
base="$(git merge-base "origin/$DEFAULT_BRANCH" "$GITHUB_SHA")"
36+
else
37+
base="$BEFORE"
38+
fi
39+
python tests/test_locale_freshness.py "$base" "$GITHUB_SHA"
2740
- run: python tests/test_bridge_config.py
2841
- run: python tests/test_tag_promotion.py
2942
- name: Enforce tag-promotion separation

0 commit comments

Comments
 (0)