Trigger a Github action on wiki edit?

874 Views Asked by At

Our local hackerspace has a Github Wiki where we document our organisation. Some assets could be autogenerated by github actions, but in order to get there we need something to trigger the action. Is there a way to make Github Action run each time a wiki is edited?

1

There are 1 best solutions below

1
Madhu Bhat On BEST ANSWER

GitHub actions can be triggered on creation or update of a Wiki page using the gollum event. You can add the below in your GitHub workflow yaml file for the same:

on:
  gollum

More on that in the GitHub Actions documentation for Gollum event