When
you create a new action, the commands and tools you use are added
to the action until you stop recording.

To
guard against mistakes, work in a copy: at the beginning of the
action before applying other commands, record the File >
Save A Copy command (Illustrator) or record the File >
Save As command and select As A Copy (Photoshop). Alternatively, in
Photoshop you can click the New Snapshot button on the History palette
to make a snapshot of the image before recording the action.