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.
Solved! Solved! Go to Solution.
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.
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!
might be possible with the API as per https://help.github.com/en/articles/events-that-trigger-workflows#external-events?
It's very limited right now. It's impossible to pass any custom parameters, and the workflow YAML file must sit on master.
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.
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.
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.