fix: add missing max-retries input to csharp-publish

Add missing max-retries input declaration that was being used by the
step-security/retry step at line 171 but not defined in the inputs
section.

Changes:
- Add max-retries input with default value of '3'
- Add description for dependency restoration retry attempts
- Regenerate README.md with updated inputs documentation

This fixes undefined input reference in the Restore Dependencies step.
This commit is contained in:
2025-11-21 08:19:58 +02:00
parent 4b3087bbce
commit 696f619767
3 changed files with 21 additions and 8 deletions

View File

@@ -8,11 +8,12 @@ Publishes a C# project to GitHub Packages.
### Inputs ### Inputs
| name | description | required | default | | name | description | required | default |
|------------------|----------------------------------------------------|----------|-------------| |------------------|--------------------------------------------------------------------|----------|-------------|
| `dotnet-version` | <p>Version of .NET SDK to use.</p> | `false` | `""` | | `dotnet-version` | <p>Version of .NET SDK to use.</p> | `false` | `""` |
| `namespace` | <p>GitHub namespace for the package.</p> | `true` | `ivuorinen` | | `namespace` | <p>GitHub namespace for the package.</p> | `true` | `ivuorinen` |
| `token` | <p>GitHub token with package write permissions</p> | `false` | `""` | | `token` | <p>GitHub token with package write permissions</p> | `false` | `""` |
| `max-retries` | <p>Maximum number of retry attempts for dependency restoration</p> | `false` | `3` |
### Outputs ### Outputs
@@ -48,4 +49,10 @@ This action is a `composite` action.
# #
# Required: false # Required: false
# Default: "" # Default: ""
max-retries:
# Maximum number of retry attempts for dependency restoration
#
# Required: false
# Default: 3
``` ```

View File

@@ -22,6 +22,10 @@ inputs:
token: token:
description: 'GitHub token with package write permissions' description: 'GitHub token with package write permissions'
required: false required: false
max-retries:
description: 'Maximum number of retry attempts for dependency restoration'
required: false
default: '3'
outputs: outputs:
publish_status: publish_status:

View File

@@ -2,7 +2,7 @@
# Validation rules for csharp-publish action # Validation rules for csharp-publish action
# Generated by update-validators.py v1.0.0 - DO NOT EDIT MANUALLY # Generated by update-validators.py v1.0.0 - DO NOT EDIT MANUALLY
# Schema version: 1.0 # Schema version: 1.0
# Coverage: 100% (3/3 inputs) # Coverage: 100% (4/4 inputs)
# #
# This file defines validation rules for the csharp-publish GitHub Action. # This file defines validation rules for the csharp-publish GitHub Action.
# Rules are automatically applied by validate-inputs action when this # Rules are automatically applied by validate-inputs action when this
@@ -17,15 +17,17 @@ required_inputs:
- namespace - namespace
optional_inputs: optional_inputs:
- dotnet-version - dotnet-version
- max-retries
- token - token
conventions: conventions:
dotnet-version: dotnet_version dotnet-version: dotnet_version
max-retries: numeric_range_1_10
namespace: namespace_with_lookahead namespace: namespace_with_lookahead
token: github_token token: github_token
overrides: {} overrides: {}
statistics: statistics:
total_inputs: 3 total_inputs: 4
validated_inputs: 3 validated_inputs: 4
skipped_inputs: 0 skipped_inputs: 0
coverage_percentage: 100 coverage_percentage: 100
validation_coverage: 100 validation_coverage: 100