ravsamhq / notify-slack-action

🔔 Send a Slack Notification from Github Actions regarding failure, warnings, or even success.
https://ravsam.in/blog/send-slack-notification-when-github-actions-fails/
MIT License
173 stars 57 forks source link

Only notify when MAIN branch fails during the build #115

Closed EllieSager-Forte closed 10 months ago

EllieSager-Forte commented 1 year ago

Hello! I don't see a way to specify that we only want to receive notifications when the build that fails is in the main (master) and not in a feature branch. Do you have such an option? If not, how hard would it be to add it?

ravsam-bot[bot] commented 1 year ago

Hello and welcome to RavSam :purple_heart:. Thanks for opening your first issue. I will assign one of our team members to take a look at the problem you have raised. Make sure to include as much information as possible to help our team diagnose the issue and solve it quickly.

If the problem is related to a security concern, then please delete this issue and send us an email at info@ravsam.in.

ravgeetdhillon commented 1 year ago

@EllieSager-Forte Kindly check the discussion on #106 to resolve your issue.

In short, you can fix this issue by adding an if condition to the step that calls this action. For more details on implementation, check out this discussion.

ravgeetdhillon commented 10 months ago

@EllieSager-Forte Were you able to solve your issue? If not, you can check out the documentation. I am sure it will solve your issue.

I am going to close this issue but be free to open it if your issue isn't resolved.