9

I know that GitHub Action manual triggers is a very discussed issue, manual approval is a bit less discussed but still present in the community.

I have a question for those who use Github actions for CD purposes.

As you know Bitbucket, Gitlab, Azure Devops etc. have a feature Manual approval which means that a pipeline can reach a certain step in the process for example: build -> test -> deploy to staging.

The next step is deploy to production yet it needs a manual approval or trigger. So my question is this, were any of you achieve that functionality in GitHub action with the same information (branch name, same test results) without running the whole pipeline again? (It's kind of the reason why I am not migrating us from Bitbucket to GitHub yet)

Thank you for your answers

Yves M.
  • 29,855
  • 23
  • 108
  • 144
guyl
  • 2,158
  • 4
  • 32
  • 58

2 Answers2

9

Recently, the GitHub team has announced Environments in beta. With this feature, you can add Manual approvals into your CI/CD.

Environment workflow syntax

However, there is a restriction for private repositories - Only GitHub Enterprise service plan can use Environments within private repositories.

Yves M.
  • 29,855
  • 23
  • 108
  • 144
Yaroslav Bres
  • 1,029
  • 1
  • 9
  • 20
  • 1
    Is there a way to use manual approval without deployments? I'd like to have an authorized user choose whether to sign an RPM on my stable branch or not – Randy Dec 01 '21 at 15:36
0

So in GitHub there are two ways to do manual approval for deployments .

  1. Using Environments
  2. Using GitHub action
Floris Devreese
  • 3,127
  • 2
  • 21
  • 31
  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Oct 03 '22 at 01:00