This repository was archived by the owner on Sep 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 140
Expand file tree
/
Copy pathaction.yml
More file actions
87 lines (87 loc) · 2.79 KB
/
Copy pathaction.yml
File metadata and controls
87 lines (87 loc) · 2.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: action-slack
description: You can notify slack of GitHub Actions.
author: 8398a7
deprecated: "This action is archived as of 2025-09-13. Please migrate to slackapi/slack-github-action or another maintained alternative."
inputs:
status:
description: Specify success or failure or cancelled or custom.
required: true
fields:
description: |
You can choose the items you want to add to the fields at the time of notification.
If you have more than one, please enter it in csv format.
e.g. commit,repo
default: ""
required: false
custom_payload:
description: |
json payload
refs https://github.com/slackapi/node-slack-sdk/blob/v5.0.0/packages/webhook/src/IncomingWebhook.ts#L91-L106)
required: false
mention:
description: |
Specify channel or here or `user_id`.
refs: https://api.slack.com/reference/surfaces/formatting#mentioning-users
default: ""
required: false
if_mention:
description: |
Specify success or failure or cancelled or custom or always.
Multiple statuses can be specified in csv format.
e.g. success,failure
default: ""
required: false
author_name:
description: User name for slack notification.
default: 8398a7@action-slack
required: false
text:
description: You can overwrite text.
default: ""
required: false
username:
description: override the legacy integration's default name.
default: ""
required: false
icon_emoji:
description: an emoji code string to use in place of the default icon.
default: ""
required: false
icon_url:
description: an icon image URL string to use in place of the default icon.
default: ""
required: false
channel:
description: override the legacy integration's default channel. This should be an ID, such as C8UJ12P4P.
default: ""
required: false
job_name:
description: Use this if you want to overwrite the job name.
default: ""
required: false
success_message:
description: Message to use when the status is 'success'.
default: ":white_check_mark: Succeeded GitHub Actions\n"
required: false
cancelled_message:
description: Message to use when the status is 'cancelled'.
default: ":warning: Cancelled GitHub Actions\n"
required: false
failure_message:
description: Message to use when the status is 'failure'.
default: ":no_entry: Failed GitHub Actions\n"
required: false
github_token:
description: Use this if you wish to use a different GitHub token than the one provided by the workflow.
required: false
default: ${{ github.token }}
github_base_url:
description: Specify if you want to use GitHub Enterprise.
default: ""
required: false
runs:
using: node20
main: dist/index.js
branding:
icon: bell
color: blue