GitHub Actions for VS Code

Simple, unofficial extension to interact with GitHub Actions from within VS Code.
Installation
- Install extension
- Open a repository with a
github.com
origin
- When prompted, allow
GitHub Actions
to access your github
account
Features
Auto-complete and documentation
No additional YAML extension needed, this extension includes a built-in language server with full support for the workflow schema.

Auto-complete actions parameters
Auto-completion and validation for every action you reference in uses
:

Auto-complete runner label

Smart auto-complete and evaluation of expressions

Auto-complete and validate github
event expressions
The extension knows about all the webhook payloads and suggests and auto-completes event payload fields

View workflows for the currently opened repository

View workflow runs and their status

Inspect logs to see failures


Trigger runs
If a workflow uses repository_dispatch
as a trigger, you can start a new workflow run from the workflow context menu:

Or from the workflow list:

Or from the editor when editing a workflow:

Pin workflows and see their status updated automatically
You can pin workflows to the status bar per workspace, and automatically see the status of the most recent run. For example, to see if the change you just pushed passes the CI Build:

- To setup, configure the
"github-actions.workflows.pinned.workflows"
property on a global level, or per workspace (.vscode/settings.json
):
{
"github-actions.workflows.pinned.workflows": [".github/workflows/build.yml", ".github/workflows/create.yml"],
}
- To enable auto-refresh via polling, set
refresh.enabled
to true
. This works by polling the workflow runs API with a default interval of 30
seconds. You can customized the interal via refresh.interval
:
{
"github-actions.workflows.pinned.workflows": [".github/workflows/build.yml", ".github/workflows/create.yml"],
"github-actions.workflows.pinned.refresh.enabled": true,
"github-actions.workflows.pinned.refresh.interval": 65,
}
Known issues