Skip to content

IEvangelist/actions-toolkit-csharp

Repository files navigation

actions-toolkit-csharp

GitHub Actions Workflow .NET SDK

build-and-test code analysis publish nuget NuGet All Contributors

The .NET equivalent of the official GitHub actions/toolkit repository, and is currently a work in progress. While there isn't currently 100% feature complete compatibility between these two repositories, that is the eventual goal.

Important

This repository is in the middle of a rename and feature-parity initiative (#5). NuGet package IDs are moving from GitHub.Actions.* to ActionsToolkit.*, and all ten upstream @actions/toolkit packages will ship together as v1.0.0 of ActionsToolkit.* once each row in PACKAGES.md is fully ✅. Native AOT correctness is verified per package via dedicated tests/<pkg>.Aot.Tests projects.

Blog

🔗 Hello from the GitHub Actions: Core .NET SDK

GitHub Actions .NET Toolkit

The GitHub Actions .NET ToolKit provides a set of packages to make creating actions easier.

Packages

✔️ ActionsToolkit.Core

Provides functions for inputs, outputs, results, logging, secrets and variables. Read more here

dotnet add package ActionsToolkit.Core

For more information, see 📦 ActionsToolkit.Core.

🍨 ActionsToolkit.Glob

Provides functions to search for files matching glob patterns. Read more here

dotnet add package ActionsToolkit.Glob

For more information, see 📦 ActionsToolkit.Glob.

✏️ ActionsToolkit.IO

Provides disk i/o functions like cp, mv, rmRF, which etc. Read more here

dotnet add package ActionsToolkit.IO

For more information, see 📦 ActionsToolkit.IO.

🚀 ActionsToolkit.Exec

Provides functions to exec command-line tools and process their output. Read more here

dotnet add package ActionsToolkit.Exec

For more information, see 📦 ActionsToolkit.Exec.

:octocat: ActionsToolkit.Octokit

Provides an Octokit client hydrated with the context that the current action is being run in. Read more here

dotnet add package ActionsToolkit.Octokit

For more information, see 📦 ActionsToolkit.Octokit.

📦 ActionsToolkit.ToolCache

Provides functions for downloading, extracting, and caching tools (such as language runtimes) on the runner — the .NET equivalent of @actions/tool-cache. Read more here.

dotnet add package ActionsToolkit.ToolCache

For more information, see 📦 ActionsToolkit.ToolCache.

🔒 ActionsToolkit.Attest

Provides functions for generating signed artifact attestations — Sigstore keyless signing of in-toto statements (including SLSA-style provenance) and persistence to GitHub's attestations REST endpoint. Read more here.

dotnet add package ActionsToolkit.Attest

For more information, see 📦 ActionsToolkit.Attest.

💾 ActionsToolkit.Cache

Provides functions for saving and restoring caches against the GitHub Actions cache service — the .NET equivalent of @actions/cache. Tar+zstd archive pipeline (managed via System.Formats.Tar + ZstdSharp.Port), Twirp+signed-URL transport for the V2 cache backend, and AOT-clean source-gen JSON. Read more here.

dotnet add package ActionsToolkit.Cache

For more information, see 📦 ActionsToolkit.Cache.

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Chet Husk
Chet Husk

💻
js6pak
js6pak

💻 ⚠️
David Gardiner
David Gardiner

💻
Fredrik Høisæther Rasch
Fredrik Høisæther Rasch

💻 🤔

This project follows the all-contributors specification. Contributions of any kind welcome!

About

The unofficial GitHub ToolKit for developing GitHub Actions with C#

Topics

Resources

License

Code of conduct

Security policy

Stars

66 stars

Watchers

0 watching

Forks

Sponsor this project

 

Packages

 
 
 

Contributors

Languages