Search code examples
githubgithub-actionsgollum-wiki

Trigger a Github action on wiki edit?


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?


Solution

  • 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