abinoda / slack-action

GitHub Action for posting Slack messages
MIT License
270 stars 37 forks source link

Output the json #21

Closed Crisfole closed 3 years ago

Crisfole commented 3 years ago

Slack returns information from its api endpoints. This PR exposes that information in the response output parameter for future steps.

This is especially useful for allowing threads since the chat.postMessage api endpoint allows using thread_ts to indicate the message is a response to a specific post.

greglarkin commented 3 years ago

The recent merge appears to have caused a bug due to a missing JSON executable. Can you please review the change and comment on that?

New error seen: /entrypoint.sh: line 9: JSON: not found

abinoda commented 3 years ago

@greglarkin Reverted https://github.com/abinoda/slack-action/pull/22

Crisfole commented 3 years ago

Oh, that's a whitespace bug: JSON=$( would fix it. My apologies.