Skip to content

WordPress save or update action triggers Github repository_dispatch action for triggering Github Actions workflow.

License

Notifications You must be signed in to change notification settings

gglukmann/wp-trigger-github

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wp-trigger-github

Plugin for WordPress. Save or update action triggers Github repository_dispatch action for triggering Github Actions workflow.

Installation

  • Add to WordPress and activate
  • Go to Settings -> General and scroll to bottom
  • Add repository owner name, repository name and generated personal access token
  • If you want to see status badge on dashboard, add workflow name too.

GitHub Actions configuration

In your GitHub workflow yaml file, you can use this as:

on:
  repository_dispatch:
    types: [wordpress]

or if you don't want to specify type you can use it without types

on:
  repository_dispatch:

About

WordPress save or update action triggers Github repository_dispatch action for triggering Github Actions workflow.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •  

Languages