Skip to content

Commit

Permalink
Adds logging for each file uploaded
Browse files Browse the repository at this point in the history
  • Loading branch information
AbleLincoln committed Sep 8, 2021
1 parent a6c117b commit 29394d3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ const targetDir = core.getInput('targetDir')
core.info(`connecting to ${username}@${host}:${port}...`)

let sftp = new Client()

sftp.on('upload', ({ source, destination }) => {
core.info(`uploaded ${source} to ${destination}`)
})

sftp
.connect({
host,
Expand Down

0 comments on commit 29394d3

Please sign in to comment.