GitHub Action
Install WordPress
v2.2.1
Latest version
Install WordPress locally using WP-CLI.
This action installs a WordPress instance thanks to wp-cli in your GitHub workflow.
- uses: holyhope/install-wordpress-github-action@main
with:
# Description: Select which version you want to download. Accepts a version
# number, 'latest' or 'nightly'.
#
# Default: latest
wordpress_version: ""
# Description: The title of the new site.
#
# Default: WordPress
wordpress_title: ""
# Description: The locale/language for the installation (e.g. `de_DE`).
#
# Default: en_US
wordpress_locale: ""
# Description: PHP version
#
# Default: 8.2
php_version: ""
# Description: PHP extensions to install. Each extension should be on a new line.
#
# Default: imagick
php_extensions: ""
# Description: WordPress Installation path
#
# Default: ${{ runner.temp }}/wordpress
installation_path: ""
# Description: GitHub token
#
# Default: ${{ github.token }}
github_token: ""
# Description: Path to the WP-CLI binary. To use a custom version of WP-CLI, see
# the
# [`install-wp-cli` GitHub action](https://github.com/marketplace/actions/install-wp-cli)
# Default: Downloaded from the official WP-CLI website.
#
wp_cli_path: ""
Input | Description | Default | Required |
---|---|---|---|
wordpress_version |
Select which version you want to download. Accepts a version number, 'latest' or 'nightly'. | latest |
false |
wordpress_title |
The title of the new site. | WordPress |
false |
wordpress_locale |
The locale/language for the installation (e.g. de_DE ). |
en_US |
false |
php_version |
PHP version | 8.2 |
false |
php_extensions |
PHP extensions to install. Each extension should be on a new line. |
imagick |
false |
installation_path |
WordPress Installation path | ${{ runner.temp }}/wordpress |
false |
github_token |
GitHub token | ${{ github.token }} |
true |
wp_cli_path |
Path to the WP-CLI binary. To use a custom version of WP-CLI, see the install-wp-cli GitHub actionDefault: Downloaded from the official WP-CLI website. |
false |
Output | Description |
---|---|
version |
WordPress version |
path |
Path to WordPress installation |
plugins_path |
Path to WordPress plugins |
themes_path |
Path to WordPress themes |
admin_username |
WordPress admin username |
admin_password |
WordPress admin password |
db_name |
WordPress database name |
db_user |
WordPress database user |
db_pass |
WordPress database password |
db_host |
WordPress database host |
db_port |
WordPress database port |
wp_cli |
Path to WP-CLI binary |