How can I add a comment in the script in Automator in OS X?

Based on the crickets chirping here, I'm going to guess that there are no built-in non-acting actions. There is a simple workaround, however:

Create a comments-only script

enter image description here

If you don't like the # syntax, there's also bash multiline syntax…

enter image description here

…or for a more muted effect, the Run Javascript and Run Applescript panes use gray for comments…

enter image description here

Of course, any time your compilable "comment scripts" haven't yet compiled—such as just after opening—you'll get a lovely shade of purple instead of gray. Which could be kinda cool, depending on your preferences.

enter image description here