Skip to main content

Creating actions

You can create your own actions, use and customize actions shared by the GitHub community, or write and share the actions you build.

About custom actions

Actions are individual tasks that you can combine to create jobs and customize your workflow. You can create your own actions, or use and customize actions shared by the GitHub community.

Creating a Docker container action

This guide shows you the minimal steps required to build a Docker container action.

Creating a JavaScript action

In this guide, you'll learn how to build a JavaScript action using the actions toolkit.

Creating a composite action

In this guide, you'll learn how to build a composite action.

Metadata syntax for GitHub Actions

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

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.

Setting exit codes for actions

You can use exit codes to set the status of an action. GitHub displays statuses to indicate passing or failing actions.

Publishing actions in GitHub Marketplace

You can publish actions in GitHub Marketplace and share actions you've created with the GitHub community.

Sharing actions and workflows from your private repository

You can share an action or reusable workflow without publishing them publicly.

Sharing actions and workflows with your organization

You can share an action or reusable workflow with your organization without publishing the action or workflow publicly.

Releasing and maintaining actions

You can leverage automation and open source best practices to release and maintain actions.

Developing a third party CLI action

Learn how to develop an action to set up a CLI on GitHub Actions runners.