Run a rollback workflow or a redeploy
Start a GitHub Actions workflow or call a deploy hook from a response, with approval and limits.
A response can start a GitHub Actions workflow or call a deploy hook. For example: when the API goes down, run your rollback workflow, or redeploy the site. The action is called Run a deploy or workflow. It is on Business and above.
Add a connection
Open Connections, choose Add connection and pick the kind. You can also add a connection inside the response editor without leaving it.
- GitHub: a fine-grained personal access token with the permission Actions: Read and write, limited to the repositories you choose.
- Deploy hook: the secret address your host gives you, for example Vercel, Netlify, Render or Cloudflare Pages. It must start with
https://.
Test connection proves a GitHub token and starts nothing. A deploy hook cannot be tested without starting a deploy, so the test only checks the address, and says so.
Add the action
- For a GitHub workflow, make sure the workflow file has
on: workflow_dispatch. - Create a response and add the action Run a deploy or workflow. The template Run a rollback workflow, at the top of New response, has it ready for when an alert fires, after someone approves.
- For a workflow, give the repository, the workflow file name, and the branch or tag. Add inputs if the workflow takes them. For a deploy hook, choose the connection.
- For a workflow, press Test on the action. It checks the repository and the workflow and starts nothing.
- Try it on Practice only first. It shows exactly what would be called: the host, repository, workflow, branch and inputs, with secrets hidden. It calls nothing.
Safety limits
- The action starts on Ask before running. Choosing Run automatically needs an owner or admin to confirm it.
- The same action runs at most 3 times an hour. You can set this from 1 to 10.
- An organization can start at most 20 workflows and deploys in 24 hours.
- If a start fails without a clear answer, it is not tried again, so it cannot run twice.
Good to know
- GitHub and deploy hooks do not report back how the run ends. The run history links to the workflow's runs page, where you can see the result.
- GitHub Enterprise Server and GitHub Apps are not supported.