Drupal 8 node 执行action

$nid = 1;
$actionEntityTypeManager = \Drupal::entityTypeManager()->getStorage('action');
$action = $actionEntityTypeManager->load('node_publish_action');
$content = Node::load($nid);
$action->execute([$content]);