He's doing the hand gesture that accompanies that line of the song, an audience-participation ditty, usually heard in Irish venues.