check github events in a shell script