voxmedia / github-action-slack-notify-build

Report GitHub Actions build status on Slack
Other
252 stars 131 forks source link

Feature request: set color automatically based on build status #61

Open vitalykarasik opened 2 years ago

vitalykarasik commented 2 years ago

It'll be nice to see this plugin to set Slack color automatically based on the job status, i.e. success => green failed => red warning => orange

vitalykarasik commented 2 years ago

Suggested into Readme method for "Reporting Success or Failure" isn't elegant, I'm using the following. But there are more possible statuses...

with: status: ${{ job.status }} color: ${{ job.status == 'success' && 'good' || 'danger' }}