Skip to content

Commit 68571f6

Browse files
committed
fix: gist_description still shows even if it is undefined
1 parent ec49064 commit 68571f6

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

dist/index.js

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

src/run.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ export const run = async (): Promise<void> => {
99

1010
startGroup('Dump inputs')
1111
info(`\
12-
[INFO] GistId: ${input.gistId}
13-
[INFO] GistDescription: ${input.gistDescription}
12+
[INFO] GistId: ${input.gistId}${
13+
input.gistDescription === undefined
14+
? ''
15+
: `\n[INFO] GistDescription: ${input.gistDescription}`
16+
}
1417
[INFO] GistFileName: ${input.gistFileName ?? 'No Change'}
1518
[INFO] FilePath: ${input.filePath}`)
1619
endGroup()

0 commit comments

Comments
 (0)