refactor: move translations to json files. #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Validate PinkSea Lexicons | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
workflow_dispatch: | |
jobs: | |
validate-pinksea-lexicons-workflow: | |
name: Validate PinkSea lexicons | |
permissions: | |
contents: read | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout PinkSea | |
uses: actions/checkout@v4 | |
- name: Check for any changed lexicons | |
id: check-for-changed-lexicons | |
uses: tj-actions/changed-files@v41 | |
with: | |
files: | | |
PinkSea.Lexicons/**/*.json | |
- name: Validate lexicon schema | |
if: steps.check-for-changed-lexicons.outputs.any_changed == 'true' | |
uses: dsanders11/json-schema-validate-action@v1.2.0 | |
with: | |
schema: https://internect.info/lexicon-schema.json | |
files: PinkSea.Lexicons/**/*.json |