Skip to content

Commit

Permalink
fix: Evaluate verbose-logging as a bool
Browse files Browse the repository at this point in the history
  • Loading branch information
jdcargile committed Feb 21, 2024
1 parent aa38e9f commit f82c88b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ inputs:
required: false
verbose-logging:
description: 'Enable verbose logging'
default: false
default: 'false'
required: false
runs:
using: 'node20'
Expand Down
3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ async function run(): Promise<void> {
core.getInput('notification-summary') || 'GitHub Action Notification'
const notificationColor = core.getInput('notification-color') || '0b93ff'
const timezone = core.getInput('timezone') || 'UTC'
const verboseLogging = core.getInput('verbose-logging')
const verboseLogging =
core.getInput('verbose-logging').toLowerCase() === 'true'
const timestamp = moment()
.tz(timezone)
.format('dddd, MMMM Do YYYY, h:mm:ss a z')
Expand Down

0 comments on commit f82c88b

Please sign in to comment.