curl -X POST "https://api.buddy.works/workspaces/:domain/projects/:project_name/pipelines/:pipeline_id/actions" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"name": "Push to Your Repo",
"type": "PUSH",
"trigger_time": "ON_EVERY_EXECUTION",
"git_auth_mode": "ENV_KEY",
"push_url": "https://app.buddy.works/buddy/repo",
"push_tags": true,
"target_branch": "stage",
"tag": "tagName",
"use_custom_gitignore": true,
"without_force": true,
"custom_options": "--no-verify",
"comment": "Push from Buddy",
"deployment_excludes": [
"/tmp/",
"*.log"
],
"env_key": "my_key"
}'
{
"url": "https://api.buddy.works/workspaces/buddy/projects/company-website/pipelines/2/actions/851",
"html_url": "https://app.buddy.works/buddy/company-website/pipelines/action/851/edit",
"id": 851,
"name": "Push to Your Repo",
"type": "PUSH",
"trigger_time": "ON_EVERY_EXECUTION",
"git_auth_mode": "ENV_KEY",
"env_key": "my_key",
"last_execution_status": "INITIAL",
"push_url": "https://app.app.buddy.works/buddy/repo",
"target_branch": "stage",
"tag": "tagName",
"push_tags": true,
"use_custom_gitignore": true,
"custom_options": "--no-verify",
"without_force": true,
"comment": "Push from Buddy",
"deployment_excludes": [
"/tmp/",
"*.log"
],
"pipeline": {
"url": "https://api.buddy.works/workspaces/buddy/projects/company-website/pipelines/2",
"html_url": "https://app.buddy.works/buddy/company-website/pipelines/pipeline/2",
"id": 2,
"name": "Live mirror",
"on": "CLICK",
"refs": [
"refs/heads/master"
],
"last_execution_status": "SUCCESSFUL",
"last_execution_revision": "506a3963507943d6908154f4bc9646e829128a08"
}
}