Deploy from GitHub to a server folder
git_deployBring a linked server folder to the latest commit of its branch (or another branch, or a ref: a commit or tag, also to roll back). dry_run (default true) shows the commits, changed files and the steps the site needs afterwards (composer, setup:upgrade, static content, cache) without changing anything; dry_run false applies it with a fast-forward. It refuses when live files that the deploy would overwrite were changed on the server (git_push them first, or stash_local true to set them aside with git stash). The answer gives the ref to roll back to. Run the after steps with the magento, wp or run tools.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ||
| why | No | ||
| path | Yes | The folder's absolute path on the server, like /home/shop/public_html. | |
| branch | No | ||
| server | No | Server name or id. Optional when the account has one server. | |
| dry_run | No | ||
| approval_id | No | ||
| stash_local | No |