Skip to content

feat(utils): add JsonPathReader utility for JSON file path navigation #1302

feat(utils): add JsonPathReader utility for JSON file path navigation

feat(utils): add JsonPathReader utility for JSON file path navigation #1302

name: Check Localization Keys
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
check:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Run LocalizationKeyGenerator
run: dotnet run --project Tools/LocalizationKeyGenerator/LocalizationKeyGenerator.csproj
- name: Check LocalizationKeys.g.cs is up to date
run: |
if ! git diff --exit-code AvatarExplorer.Core/Localization/LocalizationKeys.g.cs; then
echo "::error::LocalizationKeys.g.cs is out of date. Please run the LocalizationKeyGenerator and commit the updated file."
exit 1
fi