Skip to content

Commit 957f63e

Browse files
authored
Fix repo-memory path validation: remove branch name nesting (#8283)
1 parent a1064dc commit 957f63e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

actions/setup/js/push_repo_memory.cjs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -247,11 +247,10 @@ async function main() {
247247
}
248248

249249
// Create destination directory in repo
250-
// Extract the relative folder path from the branch name
251-
// For branch "memory/code-metrics", use "memory/code-metrics" as the destination path
252-
// This ensures the folder structure matches the branch name
253-
const destMemoryPath = path.join(workspaceDir, branchName);
254-
fs.mkdirSync(destMemoryPath, { recursive: true });
250+
// Files are copied to the root of the checked-out branch (workspaceDir)
251+
// The branch name (e.g., "memory/campaigns") identifies the branch,
252+
// but files go at the branch root, not in a nested subdirectory
253+
const destMemoryPath = workspaceDir;
255254
core.info(`Destination directory: ${destMemoryPath}`);
256255

257256
// Recursively scan and collect files from artifact directory

0 commit comments

Comments
 (0)