mirror of
https://github.com/bitwarden/browser
synced 2026-01-21 11:53:34 +00:00
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Daniel James Smith <2670567+djsmith85@users.noreply.github.com>
39 lines
919 B
YAML
39 lines
919 B
YAML
name: Locales lint for Crowdin
|
|
|
|
on:
|
|
pull_request:
|
|
branches-ignore:
|
|
- 'l10n_master'
|
|
- 'cf-pages'
|
|
paths:
|
|
- '**/messages.json'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: Checkout repo
|
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- name: Checkout base branch repo
|
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
with:
|
|
ref: ${{ github.event.pull_request.base.sha }}
|
|
path: base
|
|
persist-credentials: false
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
- name: Compare
|
|
run: |
|
|
if npm run test:locales; then
|
|
echo "Lint check successful."
|
|
else
|
|
echo "Lint check failed."
|
|
exit 1
|
|
fi
|