diff --git a/csharp-publish/README.md b/csharp-publish/README.md index b425e4f..f41eac4 100644 --- a/csharp-publish/README.md +++ b/csharp-publish/README.md @@ -8,11 +8,12 @@ Publishes a C# project to GitHub Packages. ### Inputs -| name | description | required | default | -|------------------|----------------------------------------------------|----------|-------------| -| `dotnet-version` |
Version of .NET SDK to use.
| `false` | `""` | -| `namespace` |GitHub namespace for the package.
| `true` | `ivuorinen` | -| `token` |GitHub token with package write permissions
| `false` | `""` | +| name | description | required | default | +|------------------|--------------------------------------------------------------------|----------|-------------| +| `dotnet-version` |Version of .NET SDK to use.
| `false` | `""` | +| `namespace` |GitHub namespace for the package.
| `true` | `ivuorinen` | +| `token` |GitHub token with package write permissions
| `false` | `""` | +| `max-retries` |Maximum number of retry attempts for dependency restoration
| `false` | `3` | ### Outputs @@ -48,4 +49,10 @@ This action is a `composite` action. # # Required: false # Default: "" + + max-retries: + # Maximum number of retry attempts for dependency restoration + # + # Required: false + # Default: 3 ``` diff --git a/csharp-publish/action.yml b/csharp-publish/action.yml index 50c487c..11106bb 100644 --- a/csharp-publish/action.yml +++ b/csharp-publish/action.yml @@ -22,6 +22,10 @@ inputs: token: description: 'GitHub token with package write permissions' required: false + max-retries: + description: 'Maximum number of retry attempts for dependency restoration' + required: false + default: '3' outputs: publish_status: diff --git a/csharp-publish/rules.yml b/csharp-publish/rules.yml index 342f4f9..076848e 100644 --- a/csharp-publish/rules.yml +++ b/csharp-publish/rules.yml @@ -2,7 +2,7 @@ # Validation rules for csharp-publish action # Generated by update-validators.py v1.0.0 - DO NOT EDIT MANUALLY # 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. # Rules are automatically applied by validate-inputs action when this @@ -17,15 +17,17 @@ required_inputs: - namespace optional_inputs: - dotnet-version + - max-retries - token conventions: dotnet-version: dotnet_version + max-retries: numeric_range_1_10 namespace: namespace_with_lookahead token: github_token overrides: {} statistics: - total_inputs: 3 - validated_inputs: 3 + total_inputs: 4 + validated_inputs: 4 skipped_inputs: 0 coverage_percentage: 100 validation_coverage: 100