Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions actions/setup/js/push_repo_memory.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,10 @@ async function main() {
}

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

// Recursively scan and collect files from artifact directory
Expand Down
Loading