fvilches17/Runs csharp
Runs inline C# code
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| setup-dotnet | true by default. Sets up .NET SDK 10.x. Set to false if .NET 10+ is already set up. | no | true |
| script | The C# code. No csproj required. See https://devblogs.microsoft.com/dotnet/announcing-dotnet-run-app | yes | — |
Outputs
| name | description |
|---|---|
| script-output | Optional. The C# script input can set GitHub Action outputs by writing to the GITHUB_OUTPUT environment variable. The output can be references in subsequent steps using the syntax: \$\{\{ steps.<step id>.outputs.script-output }}. Example: ```csharp SetGitHubOutput(value: "foo"); static void SetGitHubOutput(string? value) { string outputFilePath = Environment.GetEnvironmentVariable("GITHUB_OUTPUT")!; File.AppendAllText(outputFilePath, $"script-output={value}\n"); } ``` |