From 4302bf55f5a29be2b3f4c2f5c51ef4633eced4e6 Mon Sep 17 00:00:00 2001 From: BetaHuhn <51766171+BetaHuhn@users.noreply.github.com> Date: Wed, 22 Dec 2021 18:49:47 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20bug=20introduced=20by=20la?= =?UTF-8?q?st=20release?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 693d3b05..0f0c9cb8 100644 --- a/src/index.js +++ b/src/index.js @@ -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) {