Import and create iPhoto Event from folder name
In addition, this is the default behavior if you simply drop the folder onto the iPhoto icon. There is no direct need to make an Automator action unless you are doing this for many many folders.