Skip to content

Commit

Permalink
Add input to set color on custom Slack notifs
Browse files Browse the repository at this point in the history
  • Loading branch information
leplatrem committed Nov 27, 2024
1 parent 511384f commit 68242f5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion slack/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ inputs:
required: false
type: string
default: ""
color:
description: Custom color when inputs.type is set to 'custom'
required: false
type: string
default: "#28a745"
mentions:
description: Slack users or groups to mention in the message
required: false
Expand Down Expand Up @@ -145,7 +150,7 @@ runs:
"custom": {
"attachments": [
{
"color": "#28a745",
"color": "${{ inputs.color }}",
"fallback": "${{ inputs.app_name }} ${{ inputs.env_name }}: custom",
"blocks": [
{
Expand Down

0 comments on commit 68242f5

Please sign in to comment.