Skip to main content

This version of GitHub Enterprise Server will be discontinued on 2025-08-27. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise Server. For help with the upgrade, contact GitHub Enterprise support.

Workflows and actions reference

Find information on workflows and actions in GitHub Actions.

Workflow syntax for GitHub Actions

A workflow is a configurable automated process made up of one or more jobs. You must create a YAML file to define your workflow configuration.

Events that trigger workflows

You can configure your workflows to run when specific activity on GitHub happens, at a scheduled time, or when an event outside of GitHub occurs.

Workflow commands for GitHub Actions

You can use workflow commands when running shell commands in a workflow or in an action's code.

Variables reference

Find information for supported variables, naming conventions, limits, and contexts in GitHub Actions workflows.

Evaluate expressions in workflows and actions

Find information for expressions in GitHub Actions.

Contexts reference

Find information about contexts available in GitHub Actions workflows, including available properties, access methods, and usage examples.

Deployments and environments

Find information about deployment protection rules, environment secrets, and environment variables.

Dependency caching reference

Find information on the functionality of dependency caching in workflows.

Reusable workflows reference

Learn how to avoid duplication when creating a workflow by reusing existing workflows.

Metadata syntax reference

You can create actions to perform tasks in your repository. Actions require a metadata file that uses YAML syntax.

Workflow cancellation reference

Find information on the steps GitHub takes to cancel a workflow run.

Dockerfile support for GitHub Actions

When creating a Dockerfile for a Docker container action, you should be aware of how some Docker instructions interact with GitHub Actions and an action's metadata file.