🐛 Fix bug introduced by last release

This commit is contained in:
BetaHuhn 2021-12-22 18:49:47 +01:00
parent 6489269802
commit 4302bf55f5

View File

@ -67,7 +67,7 @@ const run = async () => {
const isDirectory = await pathIsDirectory(file.source)
const source = isDirectory ? `${ addTrailingSlash(file.source) }` : file.source
const dest = isDirectory ? `${ addTrailingSlash(file.dest) }` : file.dest
const dest = isDirectory ? `${ addTrailingSlash(localDestination) }` : localDestination
if (isDirectory) core.info(`Source is directory`)
@ -75,7 +75,7 @@ const run = async () => {
await copy(source, dest, deleteOrphaned, file.exclude)
await git.add(dest)
await git.add(file.dest)
// Commit each file separately, if option is set to false commit all files at once later
if (COMMIT_EACH_FILE === true) {