fvilches17/Runs csharp

Runs inline C# code

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
setup-dotnettrue by default. Sets up .NET SDK 10.x. Set to false if .NET 10+ is already set up.notrue
scriptThe C# code. No csproj required. See https://devblogs.microsoft.com/dotnet/announcing-dotnet-run-appyes
namedescription
script-outputOptional. 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"); } ```