Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Commit

Permalink
tags param support
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexShemeshWix committed Oct 12, 2020
1 parent d9e8c36 commit 51eb7f7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
12 changes: 7 additions & 5 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

12 changes: 10 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,16 @@ async function run(): Promise<void> {
const awsBucket: string = core.getInput('awsBucket')
const s3Subfolder: string = core.getInput('s3Subfolder')
const sourceFolder: string = core.getInput('sourceFolder')
core.info(`Uploaing ${sourceFolder} to ${awsBucket}/${s3Subfolder}`)
await uploadFolder(accessKeyId, secretAccessKey, awsBucket , s3Subfolder, sourceFolder)
const tags: string = core.getInput('tags')
core.info(`Uploaing ${sourceFolder} to ${awsBucket}/${s3Subfolder}`)
await uploadFolder(
accessKeyId,
secretAccessKey,
awsBucket,
s3Subfolder,
sourceFolder,
tags
)
core.info('Done')
} catch (error) {
core.setFailed(error.message)
Expand Down

0 comments on commit 51eb7f7

Please sign in to comment.