Skip to content

Commit

Permalink
fix(patch): ensure path to artifact directory is correct (#27)
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 authored Mar 1, 2024
1 parent 57ad8d0 commit 0df3ee6
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 0df3ee6

Please sign in to comment.