pinkasey/cPanel Repository Action
updates a repository that is installed in a cPanel site using cPanel API
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| hostname | hostname of cPanel installation, including protocol. for instance: https://hostname.example.com | yes | — |
| cPanelApiPort | Port of cPanel API. The default value is 2083 - don't change it unless you know what you're doing | no | 2083 |
| cpanel_token | cPanel API token, used for authorization. You should store this as a repository-secret. | yes | — |
| cpanel_username | cPanel username used for API calls. Must be the same username used to create the token. e.g: 'joe' | yes | — |
| repository_root | folder in which the repository is installed in the target cPanel account. must already exist. e.g: /home/your_account/repositories/your_repository | yes | — |
| branch | branch to checkout and update. e.g 'main'. Be careful when setting this parameter - it may change the checked-out branch in cPanel | yes | — |
| timeout | http timeout (in milliseconds) for the command sent to cPanel. Default is 5000 (5 seconds) | no | 5000 |
Outputs
| name | description |
|---|---|
| commitHash | Hash of last commit, after a successful update |
| commitMessage | Message of last commit, after a successful update |
| commitAuthor | Author of last commit, after a successful update |
| commitDate | Date of last commit (epoch time, in seconds), after a successful update |
| duration | Duration of deployment, in milliseconds |