You'll probably do best using the Action Example in the Examples Project, http://drupal.org/project/examples.
I added a note to that page to mention that.
-Randy
Hey,I came across a situation where i want to sync image/file assets from Staging to Production on publish of a node.I am using revision module & looking at triggers & actions.I did not find a documentation on how to create custom action in Drupal 7. Though it is available for Drupal 6 at http://drupal.org/node/172152--
:DJ