Skip to content

Commit eb3cd16

Browse files
Adding display_only_failed option
1 parent 374de41 commit eb3cd16

File tree

4 files changed

+10478
-8674
lines changed

4 files changed

+10478
-8674
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ This action will post workflow status notifications into your Slack channel. The
1010
| **slack_webhook_url** | _required_ | Create a Slack Webhook URL using the [Incoming Webhooks App](https://slack.com/apps/A0F7XDUAZ-incoming-webhooks?next_id=0). It is recommended that you create a new secret on your repo `SLACK_WEBHOOK_URL` for holding this value, and passing it to the action with `${{secrets.SLACK_WEBHOOK_URL}}`.
1111
| **repo_token** | _required_ | A token is automatically available in your workflow secrets var. `${{secrets.GITHUB_TOKEN}}`. You can optionally send an alternative self-generated token.
1212
| **include_jobs** | _optional_ | When set to `true`, include individual job status and durations in the slack notification. When `false` only the event status and workflow status lines are included. When set to `on-failure` — individual job status is reported only if workflow failed. Default is `true`.
13+
| **display_only_failed** | _optional_ | When set to `true`, only failed jobs will be shown in case of failure. Default is `false`.
1314
| **include_commit_message** | _optional_ | When set to `true`, include the workflow head commit message title in the slack notification. Default is `false`.
1415
| **channel** | _optional_ | Accepts a Slack channel name where you would like the notifications to appear. Overrides the default channel created with your webhook.
1516
| **name** | _optional_ | Allows you to provide a name for the slack bot user posting the notifications. Overrides the default name created with your webhook.

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ inputs:
2727
description: 'Should the slack notification include individual job status and run times'
2828
required: true
2929
default: "true"
30+
display_only_failed:
31+
description: 'Should the slack notification in case of failure display only failed jobs'
32+
required: true
33+
default: "false"
3034
include_commit_message:
3135
description: 'Should the slack notification include the head commit message'
3236
required: true

0 commit comments

Comments
 (0)