mirror of
https://github.com/ivuorinen/actions.git
synced 2026-01-26 11:34:00 +00:00
* docs: update documentation * feat: validate-inputs has it's own pyproject * security: mask DOCKERHUB_PASSWORD * chore: add tokens, checkout, recrete docs, integration tests * fix: add `statuses: write` permission to pr-lint
43 lines
1.2 KiB
Markdown
43 lines
1.2 KiB
Markdown
# ivuorinen/actions/dotnet-version-detect
|
|
|
|
## Dotnet Version Detect
|
|
|
|
### Description
|
|
|
|
Detects .NET SDK version from global.json or defaults to a specified version.
|
|
|
|
### Inputs
|
|
|
|
| name | description | required | default |
|
|
|-------------------|---------------------------------------------------------------------|----------|---------|
|
|
| `default-version` | <p>Default .NET SDK version to use if global.json is not found.</p> | `true` | `7.0` |
|
|
| `token` | <p>GitHub token for authentication</p> | `false` | `""` |
|
|
|
|
### Outputs
|
|
|
|
| name | description |
|
|
|------------------|----------------------------------------------|
|
|
| `dotnet-version` | <p>Detected or default .NET SDK version.</p> |
|
|
|
|
### Runs
|
|
|
|
This action is a `composite` action.
|
|
|
|
### Usage
|
|
|
|
```yaml
|
|
- uses: ivuorinen/actions/dotnet-version-detect@main
|
|
with:
|
|
default-version:
|
|
# Default .NET SDK version to use if global.json is not found.
|
|
#
|
|
# Required: true
|
|
# Default: 7.0
|
|
|
|
token:
|
|
# GitHub token for authentication
|
|
#
|
|
# Required: false
|
|
# Default: ""
|
|
```
|