Skip to content

timheuer/GitHubActionsVS

Repository files navigation

Build GitHub last commit VS Marketplace Badge

All Contributors

GitHub Actions for Visual Studio

The GitHub Actions extension lets you manage your workflows, view the workflow run history, and edit GitHub secrets.

image

Features

This extension mainly serves to provide a quick way to see the GitHub Actions for your open solution if identified as a GitHub.com repo. To view these, either right click on the solution or project in Solution Explorer and click "GitHub Actions" from the menu:

image

If an active solution exists and it is both a git and GitHub.com repository, the window will start querying the repository for Actions information on runs and secrets. A progress bar will be shown then you can expand to see the results.

View workflow run history

To view the history simply select a run and navigate through the tree view to see details. You can double-click on a leaf node to launch to the log point on the repo to view the rich log output.

If you close and open a new project the window will be refreshed to represent the current state.

Based on your settings you can enable 'polling' of active running workflows that are not in the completed status. This will refresh the Current Branch workflow runs until the state is completed.

Limit run count retrieval

By default a maximum of last 10 runs are retrieved. You can change this in the Tools...Options of Visual Studio and set an integer value.

image

Trigger a Workflow

If your Workflows enable a dispatch capability you can trigger to run a workflow directly from Visual Studio:

image

Manually refresh

You can manually refresh the view by clicking the refresh icon in the toolbar:

image

Edit GitHub secrets

The limitation currently is this lists and enables editing of Repository-level secrets (not org or deployment environments yet).

To add a secret right-click on the Repository Secrets node and select Add Secret

image

This will launch a modal dialog to add the repository secret. This is the same for edit (right-click on an existing secret) which will enable you to edit an existing one or delete.

image

Contributors

David Pine
David Pine

💻 📖
Tim Heuer
Tim Heuer

💻 📖
Ivan Zlatanov
Ivan Zlatanov

💻

Requirements

Visual Studio 2022 17.6 or later is required to use this extension. Additionally since GitHub Actions is obviously a feature of GitHub, you will need to be attached to an active GitHub.com repository.

Code of Conduct

This project has adopted the .NET Foundation Code of Conduct. For more information see the Code of Conduct itself or contact project maintainers with any additional questions or comments or to report a violation.

About

A Visual Studio extension for showing GitHub Actions workflow information

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages