Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vitalykarasik opened this issue Jan 13, 2022 · 1 comment
Open

Comments

@vitalykarasik
Copy link

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
Copy link
Author

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' }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant