Pet attack in cast sequence

Hello, can i get help for this macro: /castsequence reset=target petattack, serpent sting
or : /castsequence reset=target serpent sting, petattack
petattack not work

Cause it’s not on the GCD. From memory you want something like:

/petattack
/cast Serpent sting

It also has its own swing timer.