mirror of
https://github.com/misskey-dev/misskey
synced 2024-12-12 21:59:02 +09:00
09d30fef5b
* ci: include themselves in `on.push.paths` command: find .github/workflows -type f \( -name '*.yaml' -or -name '*.yml' \) | xargs -I {} yq_4.44.2-linux_x86-64 'select(.on.push.paths != null) | .[0] | map("{}")[0]' {} | xargs -I {} ~/.local/bin/yq_4.44.2-linux_x86-64 -i '.on.push.paths += ["{}"]' {} * ci: include themselves in `on.pull_request.paths` command: find .github/workflows -type f \( -name '*.yaml' -or -name '*.yml' \) | xargs -I {} yq_4.44.2-linux_x86-64 'select(.on.pull_request.paths != null) | .[0] | map("{}")[0]' {} | xargs -I {} ~/.local/bin/yq_4.44.2-linux_x86-64 -i '.on.pull_request.paths += ["{}"]' {}
29 lines
610 B
YAML
29 lines
610 B
YAML
name: Lint
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- locales/**
|
|
- .github/workflows/locale.yml
|
|
pull_request:
|
|
paths:
|
|
- locales/**
|
|
- .github/workflows/locale.yml
|
|
jobs:
|
|
locale_verify:
|
|
runs-on: ubuntu-latest
|
|
continue-on-error: true
|
|
steps:
|
|
- uses: actions/checkout@v4.1.1
|
|
with:
|
|
fetch-depth: 0
|
|
submodules: true
|
|
- uses: pnpm/action-setup@v4
|
|
- uses: actions/setup-node@v4.0.2
|
|
with:
|
|
node-version-file: '.node-version'
|
|
cache: 'pnpm'
|
|
- run: corepack enable
|
|
- run: pnpm i --frozen-lockfile
|
|
- run: cd locales && node verify.js
|