| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
GitHub Action for installing the kapi CLI in CI workflows.
Downloads the correct binary for the runner platform, verifies SHA-256 checksums, caches between runs, installs kapi plugins (the bowrain plugin by default), and configures server authentication.
steps:
- uses: neokapi/setup-kapi@v1The built-in GITHUB_TOKEN is used by default for release downloads, so no token input is required.
steps:
- uses: neokapi/setup-kapi@v1
with:
version: "1.1.0"steps:
- uses: neokapi/setup-kapi@v1
- run: kapi runThe bowrain plugin is installed by default, so a server-connected project only needs credentials:
steps:
- uses: neokapi/setup-kapi@v1
with:
auth-token: ${{ secrets.BOWRAIN_AUTH_TOKEN }}
server: https://your.bowrain.server
- run: kapi upkapi up runs the kapi loop: with the bowrain plugin installed and a server: block in the recipe, it pushes, catches up on the server, and pulls the produced targets back. To run it and commit the results, pair this with kapi-action.
| Input | Description | Default | Required |
|---|---|---|---|
| version | Kapi CLI version (e.g. 1.1.0), or latest for the newest stable CLI release | latest | No |
| token | GitHub token for release downloads and API rate limits | ${{ github.token }} | No |
| plugins | Newline- or comma-separated plugin refs to install, as the registry names them (bowrain, okapi-bridge; a kapi- prefix is stripped). Pass '' to install nothing | bowrain | No |
| auth-token | Bowrain server JWT, exported as BOWRAIN_AUTH_TOKEN | — | No |
| server | Bowrain server URL, exported as BOWRAIN_SERVER_URL | — | No |
| cache-tm | Restore/persist the project translation memory across runs via the job cache (out of git). Runs only when a kapi.yaml recipe (or legacy *.kapi) is present. Set false to disable | true | No |
| project-dir | Directory holding the kapi.yaml project for the TM cache | . | No |
| Output | Description |
|---|---|
| version | Installed version (e.g. 1.0.0) |
| cache-hit | Whether the plugin cache was hit |
The okapi-bridge plugin runs Okapi Framework filters as a Java subprocess, so the runner needs a JVM — Java 11+, or Java 17+ for Okapi 1.48.0 and later. GitHub's hosted Ubuntu runners ship a default JDK; pin one explicitly with setup-java when you need a specific version:
steps:
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: "17"
- uses: neokapi/setup-kapi@v1
with:
plugins: |
bowrain
okapi-bridgeThe plugin (bridge JARs included) is cached like any other, keyed on the plugin set + OS + arch, so the download cost is paid once per runner image.
The binary is cached keyed on version + OS + arch; plugins are cached keyed on the plugin set + OS + arch. Both skip their download step on a cache hit.
| Runner OS | Architectures |
|---|---|
| Linux | amd64, arm64 |
| macOS | arm64 (Apple silicon; no Intel build is published) |
| Windows | amd64, arm64 |
Apache-2.0
| Back | FazBrowse Home | New Git URL |