Note: GitHub Actions was available for GitHub Enterprise Server 2.22 as a limited beta. The beta has ended. GitHub Actions is now generally available in GitHub Enterprise Server 3.0 or later. For more information, see the GitHub Enterprise Server 3.0 release notes.
- For more information about upgrading to GitHub Enterprise Server 3.0 or later, see "Upgrading GitHub Enterprise Server."
- For more information about configuring GitHub Actions after you upgrade, see the documentation for GitHub Enterprise Server 3.0.
Note: GitHub-hosted runners are not currently supported on GitHub Enterprise Server. You can see more information about planned future support on the GitHub public roadmap.
Setting up GitHub CLI
To download or upgrade GitHub CLI, follow the instructions in the GitHub CLI README. To access all of the GitHub Actions-related commands, you must use version 1.9.0 or greater. For more information about GitHub CLI, see the GitHub CLI manual.
GitHub CLI can authenticate using your GitHub account. Before running GitHub CLI commands, you will need to authenticate by running gh auth login. For more information on command line authentication, see "gh auth login."
GitHub CLI commands must be run within the repository that you want to interact with, so you must first navigate to the directory containing the local copy of your repository. Alternatively, you can specify a repository by passing -R HOSTNAME/OWNER/REPOSITORY or --repo HOSTNAME/OWNER/REPOSITORY. Replace HOSTNAME with the name of your GitHub Enterprise Server instance. Replace OWNER with owner of the repository. Replace REPOSITORY with the name of the repository.
Managing GitHub Actions with GitHub CLI
To view all available commands related to GitHub Actions, run gh actions.
For more information on using commands in specific scenarios, see the following procedures: