mizchi/Setup pkspec
Install the pkspec test runner (and its adapter shims) plus the Pkl CLI on the runner.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| version | pkspec release to install. Accepts the underlying release tag `pkspec@0.4.0`, the action-friendly form `v0.4.0`, a bare semver `0.4.0`, the floating major `v0`, or `latest`. When empty, the action reads its own ref (so pinning via `mizchi/pkspec@v0.4.0` or `@v0` just works) and falls back to the latest published release. | no | "" |
| pkl-version | Pkl CLI version to install. Set to `none` to skip Pkl install. | no | 0.31.1 |
| install-dir | Directory where binaries are placed. Added to GITHUB_PATH. | no | ${{ runner.temp }}/pkspec-bin |
| init-schema-dir | Optional directory where `pkspec init --dir` writes Pkl schemas. | no | "" |
| init-force | Pass `--force` when `init-schema-dir` is set. | no | false |
| cache-pkl | When `true`, cache `~/.pkl/cache` between runs via `actions/cache@v4`. Default `false` because local schemas avoid most remote Pkl package fetches. | no | false |
| pkl-cache-key | Override the cache key used when `cache-pkl: true`. Default is `pkl-<hashFiles('**/PklProject.deps.json', '**/*.pkl')>`. | no | "" |
| github-token | GitHub token used for release lookup when version is `latest` or `v0`. | no | ${{ github.token }} |
Outputs
| name | description |
|---|---|
| version | Resolved pkspec release tag installed by the action. |
| install-dir | Directory added to PATH. |