Skip to content

Commit 7f746ca

Browse files
committed
refactor: split info
1 parent b8a3606 commit 7f746ca

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

dist/index.js

Lines changed: 7 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/run.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ export const run = async (): Promise<void> => {
1717
const fileType = input.fileType === 'binary' ? 'binary' : 'text'
1818

1919
startGroup('Dump inputs')
20-
info(`\
21-
[INFO] GistId: ${gistId}${
22-
gistDescription === undefined ? '' : `\n[INFO] GistDescription: ${gistDescription}`
20+
info(`[INFO] GistId: ${gistId}`)
21+
if (gistDescription !== undefined) {
22+
info(`[INFO] GistDescription: ${gistDescription}`)
2323
}
24-
[INFO] GistFileName: ${fileName}
25-
[INFO] FilePath: ${input.filePath}
26-
[INFO] FileType: ${fileType}`)
24+
info(`[INFO] GistFileName: ${fileName}`)
25+
info(`[INFO] FilePath: ${input.filePath}`)
26+
info(`[INFO] FileType: ${fileType}`)
2727
endGroup()
2828

2929
startGroup('Deploy to gist')

0 commit comments

Comments
 (0)