Heroku CLI
- POST
- /workspaces
- /:workspace
- /projects
- /:project_name
- /pipelines
- /:pipeline_id
- /actions
Creates a new Heroku CLI action in the pipeline
Request example
curl -X POST "https://api.buddy.works/workspaces/:workspace/projects/:project_name/pipelines/:pipeline_id/actions" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"name": "Execute commands on Heroku",
"type": "HEROKU_CLI",
"trigger_time": "ON_EVERY_EXECUTION",
"variables": [
{
"key": "appName",
"value": "my-app"
}
],
"setup_commands": [
"apt-get update && apt-get -y install git"
],
"execute_commands": [
"heroku run ls -al --app $appName"
],
"shell": "SH",
"application_name": "AppName",
"integration": {
"identifier": "heroku"
}
}'STATUS200 OK