Skip to content

Commit

Permalink
add i18n build step
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Madigan <[email protected]>
  • Loading branch information
jasonmadigan committed Oct 18, 2024
1 parent f82abd6 commit 24fbebd
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/i18n.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: I18n Check

on:
pull_request:
branches:
- '**'
workflow_dispatch:

jobs:
i18n:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '22'

- name: Install dependencies
run: yarn install

- name: Run i18n generation
run: yarn i18n

- name: Check for changes
run: |
if [[ $(git status --porcelain) ]]; then
echo "i18n generation caused changes, failing the build."
exit 1
else
echo "No changes detected."
fi

0 comments on commit 24fbebd

Please sign in to comment.