File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 18
18
uses : slackapi/slack-github-action@v1
19
19
with :
20
20
channel-id : ${{ inputs.channel }}
21
- payload : |
22
- {
23
- "message": "${{ inputs.message }}"
24
- }
21
+ text : ${{ inputs.message }}
22
+ blocks :
23
+ - type : context
24
+ elements :
25
+ - type : mrkdwn
26
+ text : " :github: *Workflow Run:* ${{ env.workflow_run }}"
27
+ - type : mrkdwn
28
+ text : " :bust_in_silhouette: *Triggered by:* @${{ github.actor }}"
29
+ - type : section
30
+ text :
31
+ type : mrkdwn
32
+ text : ${{ inputs.message }}
25
33
env :
26
34
SLACK_WEBHOOK_URL : ${{ inputs.webhook_url }}
Original file line number Diff line number Diff line change 23
23
# Only notify slack on release events
24
24
if : ${{ needs.context.outputs.is_release_master || needs.context.outputs.is_release_tag }}
25
25
steps :
26
+ - uses : actions/checkout@v4
26
27
- name : Notify Slack
27
- uses : mozilla/addons/ .github/actions/slack@main
28
+ uses : ./ .github/actions/slack
28
29
env :
29
30
retry_text : ' [Rerun Workflow](${{ github.event.workflow_run.rerun_url }})'
30
31
event_text : ${{ needs.context.outputs.is_release_master && 'Release Master' || 'Release Tag' }}
You can’t perform that action at this time.
0 commit comments