diff --git a/core/modules/comment/comment.post_update.php b/core/modules/comment/comment.post_update.php
index 04bf2db..d25d3d8 100644
--- a/core/modules/comment/comment.post_update.php
+++ b/core/modules/comment/comment.post_update.php
@@ -17,11 +17,16 @@ function comment_post_update_enable_comment_admin_view() {
 
   // Save the comment delete action to config.
   $config_install_path = $module_handler->getModule('comment')->getPath() . '/' . InstallStorage::CONFIG_INSTALL_DIRECTORY;
-  $storage = new FileStorage($config_install_path);
-  $entity_type_manager
-    ->getStorage('action')
-    ->create($storage->read('system.action.comment_delete_action'))
-    ->save();
+  // Create action if it doesn't exist.
+  $action_storage = $entity_type_manager->getStorage('action');
+  $action = $action_storage->load('comment_delete_action');
+  if (!$action) {
+    $storage = new FileStorage($config_install_path);
+    $entity_type_manager
+      ->getStorage('action')
+      ->create($storage->read('system.action.comment_delete_action'))
+      ->save();
+  }
 
   // Only create if the views module is enabled.
   if (!$module_handler->moduleExists('views')) {
