Skip to content

Commit

Permalink
🐛 Fix bug introduced by last release
Browse files Browse the repository at this point in the history
  • Loading branch information
BetaHuhn committed Dec 22, 2021
1 parent 6489269 commit 4302bf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ 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`)

const deleteOrphaned = isDirectory && file.deleteOrphaned

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) {
Expand Down

0 comments on commit 4302bf5

Please sign in to comment.