From 696f619767d092aff7b006b2c22fea4d4b015e68 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Fri, 21 Nov 2025 08:19:58 +0200 Subject: [PATCH] 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. --- csharp-publish/README.md | 17 ++++++++++++----- csharp-publish/action.yml | 4 ++++ csharp-publish/rules.yml | 8 +++++--- 3 files changed, 21 insertions(+), 8 deletions(-) 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