mirror of
https://github.com/ivuorinen/actions.git
synced 2026-03-20 21:01:09 +00:00
- Remove unsupported `deprecated: true` from language-version-detect/action.yml (deprecation already communicated via description field) - Scope action-validator pre-commit hook to workflow and action.yml files only - Make missing pre-commit a hard error in lint-actions target
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: ""