Skip to content

Commit

Permalink
Handle when target file is in a directory
Browse files Browse the repository at this point in the history
  • Loading branch information
taras committed Nov 14, 2023
1 parent e439d76 commit bf28722
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions plugins/scaffolder-yaml-actions/src/actions/append.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export function createYamlAppendAction({
...ctx,
input: {
url: _path.dirname(ctx.input.url),
targetPath: _path.dirname(filepath)
},
});

Expand Down
1 change: 1 addition & 0 deletions plugins/scaffolder-yaml-actions/src/actions/set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export function createYamlSetAction({
...ctx,
input: {
url: _path.dirname(ctx.input.url),
targetPath: _path.dirname(filepath)
},
});

Expand Down

0 comments on commit bf28722

Please sign in to comment.