upbound/Go Build Cache
Restore and save Go build cache (GOCACHE) using an S3 bucket. Save runs automatically as a post-step.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| repository | Repository name used as the first-level S3 prefix (e.g. upbound/provider-upjet-aws). Slashes are normalized to hyphens internally in the action. | yes | — |
| branch | Branch or ref used as the second-level S3 prefix (e.g. main, release/v2). Slashes are normalized to hyphens internally in the action. | yes | — |
| key | Exact cache key. Recommended format: <runner.os>-go-build-<go.sum hash> | yes | — |
| restore-keys | Newline-separated list of key prefixes for fallback restore, tried in order. | no | "" |
| bucket | S3 bucket name. | yes | — |
| aws-region | AWS region where the bucket lives. | no | us-east-1 |
| path | Local directory to cache. Defaults to the Go build cache directory (go env GOCACHE). Override to cache a different directory or maintain multiple caches per (repository, branch) pair. | no | "" |
Outputs
| name | description |
|---|---|
| cache-hit | 'true' if the exact key was found in S3, 'false' otherwise (includes fallback hits and cold misses). |