holyhope/Install WordPress
Install WordPress locally using WP-CLI.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Apr 8, 2024
- License
- MPL 2.0
Pinned Snippet
uses: holyhope/install-wordpress-github-action@5f45cb7b8009095cbf2dc56623bf74680353d9f0 # v2.2.1tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| wordpress_version | Select which version you want to download. Accepts a version number, 'latest' or 'nightly'. | no | latest |
| wordpress_title | The title of the new site. | no | WordPress |
| wordpress_locale | The locale/language for the installation (e.g. `de_DE`). | no | en_US |
| php_version | PHP version | no | 8.2 |
| php_extensions | PHP extensions to install. Each extension should be on a new line. | no | imagick |
| installation_path | WordPress Installation path | no | ${{ runner.temp }}/wordpress |
| github_token | GitHub token | yes | ${{ github.token }} |
| wp_cli_path | 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. | no | — |
Outputs
| name | 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 |