DiscordHooks / github-actions-discord-webhook

⛓ Here's your serverless solution for sending build status from GitHub Actions to Discord as webhooks.
MIT License
31 stars 15 forks source link

Job status check is case sensitive #13

Closed varGeneric closed 4 years ago

varGeneric commented 4 years ago

The example configuration does not work for me as my job returns a fully lower-case "success"/"failure"/"cancelled". It appears that the script checks for "Success" with a capital S which causes my job to be reported as status unknown.

Proposed fix is to just convert the input string to lower case and check against lower case versions of the current strings.

iamtraction commented 4 years ago

Would you like to open a PR?

varGeneric commented 4 years ago

Opened #14.