Skip to content

Commit

Permalink
Adding display_only_failed option
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanteixeira committed Nov 24, 2022
1 parent 374de41 commit 9072062
Show file tree
Hide file tree
Showing 4 changed files with 10,478 additions and 8,674 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ This action will post workflow status notifications into your Slack channel. The
| **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}}`.
| **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.
| **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`.
| **display_only_failed** | _optional_ | When set to `true`, only failed jobs will be shown in case of failure. Default is `false`.
| **include_commit_message** | _optional_ | When set to `true`, include the workflow head commit message title in the slack notification. Default is `false`.
| **channel** | _optional_ | Accepts a Slack channel name where you would like the notifications to appear. Overrides the default channel created with your webhook.
| **name** | _optional_ | Allows you to provide a name for the slack bot user posting the notifications. Overrides the default name created with your webhook.
Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ inputs:
description: 'Should the slack notification include individual job status and run times'
required: true
default: "true"
display_only_failed:
description: 'Should the slack notification in case of failure display only failed jobs'
required: true
default: "false"
include_commit_message:
description: 'Should the slack notification include the head commit message'
required: true
Expand Down
Loading

0 comments on commit 9072062

Please sign in to comment.