Skip to content

Commit

Permalink
fix(patch): ensure path to artifact directory is correct
Browse files Browse the repository at this point in the history
Repo patch is broken due to incorrect path used by the changes to support multiple release defn
  • Loading branch information
azlam-abdulsalam committed Mar 1, 2024
1 parent 57ad8d0 commit 88fb9f3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/sfp-cli/src/commands/repo/patch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,14 @@ export default class Patch extends SfpCommand {
'artifacts',
releaseDefinition.release.replace(/[/\\?%*:|"<>]/g, '-')
);
if(releaseDefinition.releaseConfigName)
{
revisedArtifactDirectory = path.join(
'artifacts',
releaseDefinition.releaseConfigName.replace(/[/\\?%*:|"<>]/g, '-'),
releaseDefinition.release.replace(/[/\\?%*:|"<>]/g, '-')
);
}

let artifacts = ArtifactFetcher.fetchArtifacts(revisedArtifactDirectory, null, logger);

Expand Down

0 comments on commit 88fb9f3

Please sign in to comment.