lightsofapollo/cargo-affect
Plan affected Rust workspace package checks from git changes.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| workspace | Cargo workspace root or manifest path. | — | . |
| base | Git base ref to diff against, or auto for pull_request/push detection. | — | auto |
| fetch-base | Fetch the resolved diff base when it is missing from a shallow checkout. | — | true |
| base-fetch-depth | Commit depth used when fetching the resolved diff base. | — | 1 |
| current-branch-deepen-depth | Extra history to fetch from the current branch when a push-event base SHA cannot be fetched directly. | — | 256 |
| config | Optional affect.toml path. | — | "" |
| set | Optional comma-separated package set names from affect.toml. | — | "" |
| platform | Optional platform policy name. Defaults to cargo-affect's host OS. | — | "" |
| profile | Optional CI profile from affect.toml. | — | "" |
| backend | CI/cache backend recipe name, for downstream matrix/cache consumers. | — | auto |
| stage | Optional CI task stage to run when run-tasks is true. | — | "" |
| run-tasks | Run selected CI profile tasks after planning. | — | false |
| version | cargo-affect release tag to install. Defaults to the action ref when it is a tag; otherwise builds from source. | — | "" |
Outputs
| name | description |
|---|---|
| packages | Space-separated affected package names. |
| package-args | Cargo package arguments, for example `-p crate-a -p crate-b`. |
| nextest-expr | cargo-nextest package filter expression. |
| json | Full cargo-affect JSON plan. |
| base | Git base ref used for the plan. |
| profile | CI profile used for the plan, when configured. |
| tasks | Full selected CI task JSON array. |
| task-ids | Space-separated selected CI task ids. |
| empty | true when no packages were selected. |
| cache-group | Stable package group string for cache key dimensions. |
| cache-key | Short stable hash of the cache group, safe for provider cache key limits. |
| backend | Backend recipe requested by the workflow. |
| runner | Current runner OS/architecture label. |