GitHub Actions
A deploy, a release or a publish should wait for the right person, not for whoever has the repository open. A task type can start a GitHub Actions workflow when a person approves, and the TaskToHuman GitHub Action creates tasks from any workflow, with fields filled from the run.
Where it fits
- GitHub Actions
- TaskToHuman
- The person who decides
- Your workflow starts when a person approves
- Your workflow starts when a person approves
What it does
- Approving a task starts a workflow (
workflow_dispatch) on the branch or tag you choose, with inputs filled from the task, or sends a repository event (repository_dispatch) with the decision. - By default only a person's approval starts it: a rejection, an expiry or an automatic decision starts nothing, and test tasks never do.
- The GitHub Action creates a task from any step and outputs its id and link. It can end the run and let the decision start the next workflow, or wait for the decision and pass the answer on.
- A fine-grained token for one repository, stored encrypted and tied to the exact settings it was saved with: any change removes it. Part of every plan; inputs from a template on plans that include custom payloads.
Set it up
In GitHub, create a fine-grained token for the repository with Actions: Read and write (or Contents: Read and write for repository events).
In the app, open the task type, then After the answer, GitHub Actions: choose the repository, the workflow and the branch, and map the inputs. Save, then add the token last and check the connection.
To create tasks from a workflow, add the step
MobiusApps/tasktohuman-actionfrom the GitHub Marketplace, with your API key stored as a secret.