---
title: "addAction(_:)"
framework: automator
role: symbol
role_heading: Instance Method
path: "automator/amworkflow/addaction(_:)"
---

# addAction(_:)

Adds the specified action at the end of the receiving workflow.

## Declaration

```swift
func addAction(_ action: AMAction)
```

## Parameters

- `action`: The action to add.

## Discussion

Discussion The workflow retains the action but does not copy it.

## See Also

### Manipulating the Workflow’s Actions

- [insertAction(_:at:)](automator/amworkflow/insertaction(_:at:).md)
- [moveAction(at:to:)](automator/amworkflow/moveaction(at:to:).md)
- [removeAction(_:)](automator/amworkflow/removeaction(_:).md)
