diff --git a/lib/entry-points.js b/lib/entry-points.js index 44d94d1e0..ece461a1f 100644 --- a/lib/entry-points.js +++ b/lib/entry-points.js @@ -187002,6 +187002,10 @@ async function uploadFailureInfo(uploadAllAvailableDebugArtifacts, printDebugLog `Failed to clean up database cluster directory ${config.dbLocation}. Details: ${e}` ); } + } else if (config.dbLocation === void 0) { + logger2.debug( + "Skipping cleanup of database cluster directory since the configuration does not include a database path." + ); } else { logger2.debug( "Skipping cleanup of database cluster directory since we are running on a GitHub-hosted runner which will be automatically cleaned up." diff --git a/src/init-action-post-helper.ts b/src/init-action-post-helper.ts index 270bc0f07..3d3ffc570 100644 --- a/src/init-action-post-helper.ts +++ b/src/init-action-post-helper.ts @@ -410,6 +410,10 @@ export async function uploadFailureInfo( `Failed to clean up database cluster directory ${config.dbLocation}. Details: ${e}`, ); } + } else if (config.dbLocation === undefined) { + logger.debug( + "Skipping cleanup of database cluster directory since the configuration does not include a database path.", + ); } else { logger.debug( "Skipping cleanup of database cluster directory since we are running on a GitHub-hosted " +