Skip to content

Commit

Permalink
fix(sync-files): create the parent directory before copying a file (#101
Browse files Browse the repository at this point in the history
)

Resolves #100

Signed-off-by: Kenji Miyake <[email protected]>
  • Loading branch information
kenji-miyake authored Mar 13, 2022
1 parent 8108f8c commit b0ef2d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sync-files/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ runs:
if ! [ -f "$dest_path" ]; then
echo "Newly copy $source_path to $dest_path."
mkdir -p $(dirname "$dest_path")
cp "$source_file" "$dest_path"
yq -i e ".added += [\"$dest_path\"]" /tmp/result.yaml
elif ! diff "$source_file" "$dest_path"; then
Expand Down

0 comments on commit b0ef2d5

Please sign in to comment.