@@ -95662,9 +95662,8 @@ var __webpack_exports__ = {};
9566295662 const relativePath = external_path_default().relative(process.cwd(), targetFilePath);
9566395663 const pathParts = relativePath.split(external_path_default().sep);
9566495664 const fileNameWithoutExt = external_path_default().parse(fileName).name;
95665- const fileExt = external_path_default().parse(fileName).ext;
9566695665 const pathHash = hashPath(pathParts, fileNameWithoutExt);
95667- const artifactName = `${pathHash}-${hash}${fileExt} `;
95666+ const artifactName = `${pathHash}-${hash}`;
9566895667 console.log(`Uploading artifact: ${artifactName}`);
9566995668 console.log(`From file: ${targetFilePath}`);
9567095669 const uploadResponse = await artifactClient.uploadArtifact(artifactName, [
@@ -96132,7 +96131,8 @@ var __webpack_exports__ = {};
9613296131 const fileNameWithoutExt = external_path_default().parse(fileName).name;
9613396132 const fileExt = external_path_default().parse(fileName).ext;
9613496133 const pathHash = hashPath(pathParts, fileNameWithoutExt);
96135- const expectedArtifactName = `${pathHash}-${commitHash}${fileExt}`;
96134+ const expectedArtifactName = `${pathHash}-${commitHash}`;
96135+ const legacyArtifactName = `${pathHash}-${commitHash}${fileExt}`;
9613696136 console.log(`📋 Searching for artifact with path hash and commit hash: ${expectedArtifactName}`);
9613796137 console.log(` Path hash: ${pathHash}`);
9613896138 console.log(` File path: ${relativePath}`);
@@ -96147,7 +96147,7 @@ var __webpack_exports__ = {};
9614796147 console.log(` Status: ${workflowRun.status}, Conclusion: ${workflowRun.conclusion}`);
9614896148 try {
9614996149 const runArtifacts = await githubService.listArtifactsForWorkflowRun(workflowRun.id);
96150- const foundArtifact = runArtifacts.artifacts?.find((a)=>a.name === expectedArtifactName);
96150+ const foundArtifact = runArtifacts.artifacts?.find((a)=>a.name === expectedArtifactName || a.name === legacyArtifactName );
9615196151 if (foundArtifact) {
9615296152 artifact = foundArtifact;
9615396153 artifacts = runArtifacts;
@@ -96173,7 +96173,7 @@ var __webpack_exports__ = {};
9617396173 }
9617496174 if (!artifact) {
9617596175 artifacts = await githubService.listArtifacts();
96176- artifact = artifacts.artifacts.find((a)=>a.name === expectedArtifactName);
96176+ artifact = artifacts.artifacts.find((a)=>a.name === expectedArtifactName || a.name === legacyArtifactName );
9617796177 }
9617896178 if (!artifact) {
9617996179 console.log(`❌ No artifact found matching: ${expectedArtifactName}`);
0 commit comments