samples/github-actions/DotNet.GitHubAction
github-actions[bot] 19e8c4e6ee
.NET code metrics, automated pull request. (#6279)
Co-authored-by: IEvangelist <IEvangelist@users.noreply.github.com>
2023-11-16 10:12:44 -08:00
..
DotNet.CodeAnalysis Updated content for an imminent .NET devblog (#5011) 2022-02-16 14:39:04 -06:00
DotNet.GitHubAction GitHub actions summary output fix (#6272) 2023-10-30 15:32:46 -05:00
.dockerignore .NET GitHub action (#4431) 2021-03-15 12:46:22 -05:00
.gitignore .NET GitHub action (#4431) 2021-03-15 12:46:22 -05:00
CODE_METRICS.md .NET code metrics, automated pull request. (#6279) 2023-11-16 10:12:44 -08:00
Dockerfile Updated content for an imminent .NET devblog (#5011) 2022-02-16 14:39:04 -06:00
DotNet.GitHubAction.sln Added workflow composition YML to SLN for easier edits, fix two build warnings in container, fix path COPY cmds. (#4447) 2021-03-17 09:04:46 -05:00
LICENSE .NET GitHub action (#4431) 2021-03-15 12:46:22 -05:00
README.md Updated content for an imminent .NET devblog (#5011) 2022-02-16 14:39:04 -06:00
action.yml Fix typo (#5031) 2022-03-01 12:26:15 -08:00

README.md

languages products page_type name urlFragment description
csharp
dockerfile
dotnet
github
sample GitHub Actions with .NET create-dotnet-github-action A .NET 6 console application that contains the example from Create a GitHub Action with .NET tutorial.

Create a GitHub Action with .NET

This sample is a console application written in C# from the Create a GitHub Action with .NET tutorial. The article gives an overview of what is required to create a .NET GitHub Action.

Sample prerequisites

This sample is written in C# and targets .NET 6. It requires the .NET 6.0 SDK or later.

Building the sample

To download and run the sample, follow these steps:

  1. Download and unzip the sample.
  2. In Visual Studio (2022 or later):
    1. On the menu bar, choose File > Open > Project/Solution.
    2. Navigate to the folder that holds the unzipped sample code, and open the C# project (.csproj) file.
    3. Choose the F5 key to run with debugging, or Ctrl+F5 keys to run the project without debugging.
  3. From the command line:
    1. Navigate to the folder that holds the unzipped sample code.
    2. At the command line, type dotnet run.

More information