You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm new to Slack's APIs, and I only installed the action. I missed to install the new app to the channel I want it to send a message to, the PR at #5 would have saved me some time ;)
I wanted to let you know that although the error is logged to the output, the action still exists as if sending the message succeeded.
What type of issue is this? (place an x in one of the [ ])
bug
enhancement (feature request)
question
documentation related
example code related
testing related
discussion
Requirements (place an x in each of the [ ])
I've read and understood the Contributing guidelines and have done my best effort to follow them.
👋 With the @2.0.0 release we now have the errors input option that can be set to true to cause the step to fail if the request fails and the message can't be sent for some reason:
- name: Send a message to nowhereuses: slackapi/slack-github-action@v2.0.0with:
errors: truemethod: chat.postMessagetoken: ${{ secrets.SLACK_BOT_TOKEN }}payload: | channel: "" text: "Greetings!"
This setup will cause the step to fail with the following error:
SlackError: An API error occurred: channel_not_found
Thanks again for this suggestion too! I'll close this issue, but with excitement to be catching errors a few steps earlier now 🙏 ✨
Description
I'm new to Slack's APIs, and I only installed the action. I missed to install the new app to the channel I want it to send a message to, the PR at #5 would have saved me some time ;)
I wanted to let you know that although the error is logged to the output, the action still exists as if sending the message succeeded.
What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
package version: latest
node version: any
OS version(s): any
Steps to reproduce:
Expected result:
Action should fail with helpful instructions
Actual result:
Error is logged, but exist status is still 0
Attachments:
Sorry I've re-ran the action and have no longer access to the run that failed
The text was updated successfully, but these errors were encountered: