From 68242f50c92c38b63f94cf94f92ea3df993f7b46 Mon Sep 17 00:00:00 2001 From: Mathieu Leplatre Date: Wed, 27 Nov 2024 13:48:41 +0100 Subject: [PATCH] Add input to set color on custom Slack notifs --- slack/action.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/slack/action.yaml b/slack/action.yaml index f789bce..8d99aca 100644 --- a/slack/action.yaml +++ b/slack/action.yaml @@ -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 @@ -145,7 +150,7 @@ runs: "custom": { "attachments": [ { - "color": "#28a745", + "color": "${{ inputs.color }}", "fallback": "${{ inputs.app_name }} ${{ inputs.env_name }}: custom", "blocks": [ {