Skip to content

Commit

Permalink
Merge pull request #38 from leplatrem/custom-color-custom-action
Browse files Browse the repository at this point in the history
feat(slack): Add input to set color on custom Slack notifs
  • Loading branch information
dlactin authored Nov 27, 2024
2 parents 511384f + 68242f5 commit 186c0ba
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 186c0ba

Please sign in to comment.