Search code examples
github-actions

How to trigger a step manually with GitHub Actions


In every CI solution (Jenkins, CircleCI, GitlabCI), it's possible to pause a pipeline and wait to a manual approval to continue.

How to do this with GitHub Actions?


Solution

  • Seems you can do this now using Environments: https://docs.github.com/en/actions/managing-workflow-runs/reviewing-deployments

    Simply create an environment, select required reviewers, add yourself or a team, and then hit save.

    Then associate the environment in your Github Actions YAML file like so

    environment:
      name: <Your Github Environment here>
    

    Then to release that step you can click "Review Deployments" and then choose which environment you want to deploy.