Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 21

GitHub Actions Manual Trigger / Approvals

Solved! Go to Solution.

Feature Request: GitHub Actions Manual Trigger / Approvals

 

As far as I can tell, there is no way to manually trigger a workflow execution. If there is, how is it done?

 

If not, I would like to request an additional event trigger called "manual" that would allow one to arbitrarily trigger an exeuction from the Actions UI within GitHub. My use case is to use Actions as a deployment tool and have the ability to run workflows on older commits (rollbacks) or have production deployment workflows be manually triggered.

 

In addition to that, the ability to have manual approvals as part of job steps in a workflow would be nice. Similar to the above use case, this would be to have build/tests and development deployments happen automatically, but production deployment steps could be dependent on a manual approval to continue workflow execution.

20 Replies
Solution
Moderator
Message 2 of 21

Re: GitHub Actions Manual Trigger / Approvals

Hi @blytheaw,

 

Thanks for this feedback! We're always working to improve GitHub and the GitHub Community Forum, and we consider every suggestion we receive. I've logged your feature request in our internal feature request list. Though I can't guarantee anything or share a timeline for this, I can tell you that it's been shared with the appropriate teams for consideration.

 

Cheers!

Copilot Lvl 3
Message 3 of 21

Re: GitHub Actions Manual Trigger / Approvals

Hello. Please let us know if it's possible to do it now. This feature is very important though. 

Copilot Lvl 2
Message 4 of 21

Re: GitHub Actions Manual Trigger / Approvals

Any news regarding this matter?

 

The manual approval/trigger functionality would be greatly appreciated, and we are sorry that this is lacking from your otherwise great product :) Otherwise we would have started moving other build and deploy-pipelines to Github Actions right away!

Ground Controller Lvl 1
Message 5 of 21

Re: GitHub Actions Manual Trigger / Approvals

This is very important.  We need GitLab's when:manual stuff and it should come with list of approved users

Pilot Lvl 1
Message 6 of 21

Re: GitHub Actions Manual Trigger / Approvals

Copilot Lvl 3
Message 7 of 21

Re: GitHub Actions Manual Trigger / Approvals

It's very limited right now. It's impossible to pass any custom parameters, and the workflow YAML file must sit on master.

Ground Controller Lvl 1
Message 8 of 21

Re: GitHub Actions Manual Trigger / Approvals

I'm surprised this wasn't included with the initial offering. I imagine a lot of people will want to follow the same track in using Actions for deployment. I'm trying to figure out a nicer alternative for the time being, but this would be a useful and much needed addition.

Ground Controller Lvl 1
Message 9 of 21

Re: GitHub Actions Manual Trigger / Approvals

I was really surprised when I found out there was no way to trigger an action manually from the repo.

Coming from GitLab's CI, this is an important feature for us. We find it cumbersome to use an API to trigger our deployments.

 

I hope this feature is gonna make it in the initial release of GitHub actions.

Highlighted
Pilot Lvl 2
Message 10 of 21

Re: GitHub Actions Manual Trigger / Approvals

There should be a button for this in the interface, yes. In the meantime you should be able to trigger a build manually by sending a Repository Dispatch Event to the GitHub API. If you use something like PostMan you can save a request that does that, or simply create a small curl script that you can run from your machine.

 

You can then attach your workflow to the `repository_dispatch` event to have it triggered when you POST to the API:

 

on: repository_dispatch

jobs:
  manual_deploy:
    steps:
      - name: Checkout master
        uses: actions/checkout@v1
        with:
          ref: master
      - <and so on>

It's not ideal, but it should allow you to trigger manual builds until official support is added to the UI.