I94 till July 22nd and travel to india

Hi,

I got valid i94 (in i797)till August 2019. But my h1 stamping ends July 12 2018.

I’m traveling to India and will be back on July 3rd.

Will the cbp officer give new i94 till July 12 or based on my i797? Is there any risk involved?

Please share similar kind of situation.

Thx

Raj