Skip to content

Commit 4302bf5

Browse files
committed
🐛 Fix bug introduced by last release
1 parent 6489269 commit 4302bf5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ const run = async () => {
6767

6868
const isDirectory = await pathIsDirectory(file.source)
6969
const source = isDirectory ? `${ addTrailingSlash(file.source) }` : file.source
70-
const dest = isDirectory ? `${ addTrailingSlash(file.dest) }` : file.dest
70+
const dest = isDirectory ? `${ addTrailingSlash(localDestination) }` : localDestination
7171

7272
if (isDirectory) core.info(`Source is directory`)
7373

7474
const deleteOrphaned = isDirectory && file.deleteOrphaned
7575

7676
await copy(source, dest, deleteOrphaned, file.exclude)
7777

78-
await git.add(dest)
78+
await git.add(file.dest)
7979

8080
// Commit each file separately, if option is set to false commit all files at once later
8181
if (COMMIT_EACH_FILE === true) {

0 commit comments

Comments
 (0)