rvagg / github-webhook

A flexible web server for reacting GitHub Webhooks
MIT License
116 stars 24 forks source link

Pass payload primitive values as gh_<key> env vars #11

Closed kapouer closed 5 years ago

kapouer commented 7 years ago

So one can exec a string like (on a create event, for example): git fetch && git checkout ${gh_ref}

kapouer commented 7 years ago

Refactored and extended, so one can do stuff like

{
  "event": "create",
  "match": "ref_type == 'tag'",
  "exec": "cd ~/src/${gh_repository_name}/site/; git fetch; git checkout ${gh_ref}; make install restart"
}
rvagg commented 5 years ago

@kapouer I merged this and published a semer-major with it yesterday, reformatted a bit,