improve branch filter logic for non-push hooks
improve branch filter logic for non-push hooks

this change alters the branch filter logic to not execute for tags or deployment hooks, which may contain the ref in the branch field and would otherwise be likely to fail the check.
chlorm-forks/drone,donatj/drone,carnivalmobile/drone,veghead/drone,carnivalmobile/drone,bsauvajon/drone,Ablu/drone,mvdkleijn/drone,masarakki/drone,benschumacher/drone,vaijab/drone,donatj/drone,vaijab/drone,lins05/drone,lins05/drone,mvdkleijn/drone,vtolstov/drone,cdaguerre/drone,cdaguerre/drone,mvdkleijn/drone,vtolstov/drone,Ablu/drone,cdaguerre/drone,jdamick/drone,bsauvajon/drone,NamPNQ/drone,donatj/drone,mvdkleijn/drone,chlorm-forks/drone,NamPNQ/drone,benschumacher/drone,masarakki/drone,veghead/drone,Ablu/drone,carnivalmobile/drone,jdamick/drone