In acrylonitrile ($CH_2=CH-CN$), each vinyl carbon participates in a $C=C$ double bond and two single bonds, giving both $sp^2$ hybridization. The carbon of the cyano group forms a $C\equiv N$ triple bond plus one single bond, giving it $sp$ hybridization; so the hybridizations along the chain are $sp^2$, $sp^2$, $sp$.