Files
actions/language-version-detect/README.md
Ismo Vuorinen 5ab6f03264 refactor(go): remove redundant caching from Go actions
Remove redundant common-cache usage in Go actions since setup-go with
cache:true already provides comprehensive caching.

Changes:
- go-build: Removed duplicate common-cache step (setup-go caches
  ~/go/pkg/mod and ~/.cache/go-build automatically)
- go-lint: Removed redundant ~/.cache/go-build from cache paths
  (kept ~/.cache/golangci-lint as it's linter-specific and not
  covered by setup-go)

Performance improvements:
- Eliminates duplicate caching operations
- Reduces action initialization overhead
- setup-go's native caching is more efficient and maintained

setup-go with cache:true caches:
- ~/go/pkg/mod (Go modules)
- ~/.cache/go-build (Go build cache)
2025-11-20 11:23:53 +02:00

51 lines
1.7 KiB
Markdown

# ivuorinen/actions/language-version-detect
## Language Version Detect
### Description
DEPRECATED: This action is deprecated. Inline version detection directly in your actions instead. Detects language version from project configuration files with support for PHP, Python, Go, and .NET.
### Inputs
| name | description | required | default |
|-------------------|-----------------------------------------------------------------|----------|---------|
| `language` | <p>Language to detect version for (php, python, go, dotnet)</p> | `true` | `""` |
| `default-version` | <p>Default version to use if no version is detected</p> | `false` | `""` |
| `token` | <p>GitHub token for authentication</p> | `false` | `""` |
### Outputs
| name | description |
|--------------------|----------------------------------------------------------------------------|
| `detected-version` | <p>Detected or default language version</p> |
| `package-manager` | <p>Detected package manager (python: pip/poetry/pipenv, php: composer)</p> |
### Runs
This action is a `composite` action.
### Usage
```yaml
- uses: ivuorinen/actions/language-version-detect@main
with:
language:
# Language to detect version for (php, python, go, dotnet)
#
# Required: true
# Default: ""
default-version:
# Default version to use if no version is detected
#
# Required: false
# Default: ""
token:
# GitHub token for authentication
#
# Required: false
# Default: ""
```