Use sync --check (or doctor) to fail a build when emitted files drift from source specs.
Minimal step inside any workflow:
- run: agnostic-ai sync --checkExit code is non-zero if any target file is out of date. The command never writes to disk; it compares planned output against files on disk. Combine with doctor for stricter pre-merge gates.
The official action handles binary download, version pinning, and caching:
- uses: chemaclass/agnostic-ai-action@v1
with:
version: latest # or a pinned vX.Y.Z
command: check # check | sync | doctor- Defaults to
agnostic-ai sync --checkwhencommandis omitted. - Binary is cached across runs keyed on
version. Warm runs finish under five seconds onubuntu-latest. - On drift, the action posts a one-line job summary listing the out-of-date files.
Pin to a major (@v1) for compatible upgrades, a minor (@v1.0) for patch-only, or a full tag (@v1.0.0) for byte-stable runs.
Source and release notes: chemaclass/agnostic-ai-action.