Install
Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/bpato/wp-change-trigger-github/releases/download/v1.0.0/wp-change-trigger-github.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
A WordPress plugin that fires GitHub Actions automatically when content is created or updated, and can also be triggered manually from the WordPress admin panel.
Features
- Automatically triggers a GitHub Actions workflow when posts or pages are created or updated.
- Manual trigger available from the WordPress admin panel.
- Uses Bearer token authentication for GitHub REST API calls.
- Prevents multiple consecutive executions using WordPress transients.
- Basic logging for easier debugging.
Installation
- Download or clone this repository.
- Copy the
wp-change-trigger-githubfolder into your WordPress site'swp-content/plugins/directory. - Run
composer installinside the plugin directory to install dependencies (if required). - Activate the plugin from the WordPress admin panel.
Configuration
After activation, go to Tools > Wp Change Trigger Github in the WordPress admin panel and fill in:
- Repository Owner: GitHub username or organization.
- Repository Name: Name of your GitHub repository.
- Repository Workflow Name: Filename of the workflow (e.g.,
main.yml). - Personal Access Token (Classic): A GitHub token with permissions to trigger workflows.
Usage
- The plugin will automatically trigger the configured GitHub Actions workflow when you publish or update posts/pages.
- You can also trigger the workflow manually from the admin panel.
Requirements
- WordPress 6.7 or higher
- PHP 7.4 or higher
- A GitHub repository with a workflow file
Changelog
See CHANGELOG.md for details.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Releases
1 release. Each count is every asset in that release; expand a row for the breakdown.
Tag
Published
Assets
Downloads