Allow filtering by ref

This allows Github-Auto-Deploy to (optionally) filter by ref so that pushes to non-deployment branches don't trigger pull + deploy script.

The default behaviour is unmodified.