How to sample an action that remains constant until the end of an episode?

Hi,
Usually actions are generated for each step and applied to the agent. Is there a way to generate an action that remains constant until the episode ends? I am using Isaac Gym.