Overview
Use the repository root action when you want a pull request check that fails on localization drift. The action runshyperlocalise run --dry-run, streams the CLI output to the workflow log, and uploads two artifacts when enabled:
drift-report.jsondrift-summary.txt
Example workflow
check mode can fetch the GitHub pull request diff and pass it to hyperlocalise check --diff-stdin. This scopes findings and inline annotations to changed translation keys for supported .json, .jsonc, and .arb files.
v1 ref for the latest stable v1 release. Pin an exact tag if you want stricter change control.
Inputs
check: check name. Supported values aredriftandcheck.config-path: path to the config file. Defaults toi18n.yml.working-directory: working directory for the command. Defaults to..hyperlocalise-version: release version to install. Defaults tolatest.fail-on-drift: fail the workflow when drift is detected. Defaults totrue.fail-on-findings: fail the workflow when check findings are detected. Defaults totrue.github-diff: incheckmode on pull requests, fetch the GitHub PR diff and pass it tohyperlocalise check --diff-stdin. Defaults tofalse.upload-artifact: upload the JSON and text artifacts. Defaults totrue.
Drift detection
The action treats either of these conditions as drift:- one or more executable translation tasks in the dry-run report
- one or more prune candidates in the dry-run report
Artifacts
drift-summary.txt is the quick triage artifact. It records:
- the config path used
- the CLI exit code
- whether drift was detected
- affected target paths
- affected target locales
- affected entry keys when available