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

1.7 KiB

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

Language to detect version for (php, python, go, dotnet)

true ""
default-version

Default version to use if no version is detected

false ""
token

GitHub token for authentication

false ""

Outputs

name description
detected-version

Detected or default language version

package-manager

Detected package manager (python: pip/poetry/pipenv, php: composer)

Runs

This action is a composite action.

Usage

- 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: ""