Get a shutoff kit.
http://www.drsfostersmith.com/Produc...&N=2004+113776
The float valve is attached to a bulkhead. A hole can be drilled into your garbage can easily with a flat wood bit. When the water filled and the float valve is lifted it produces back pressure which shuts off the water by means of a pressure selenoid.