Files
actions/language-version-detect/README.md
Ismo Vuorinen ec044d16c0 docs: deprecate language-version-detect action
Mark language-version-detect as deprecated now that all internal usages
have been inlined. Inline version detection provides better performance
by eliminating action initialization overhead.

Changes:
- Add DEPRECATED notice to action.yml description and metadata
- Add deprecation warning banner to README with migration guidance
- Reference existing actions with inline detection patterns

Users should migrate to inlining version detection logic directly into
their actions rather than using this composite action. See pr-lint,
php-laravel-phpunit, python-lint-fix, and go-build for examples.

This action will be removed in a future release.
2025-11-20 11:13:32 +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@v2025
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: ""
```