Skip to content

Commit 4581394

Browse files
committed
more
1 parent 15d539c commit 4581394

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

.github/actions/slack/action.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,17 @@ runs:
1818
uses: slackapi/slack-github-action@v1
1919
with:
2020
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 }}
2533
env:
2634
SLACK_WEBHOOK_URL: ${{ inputs.webhook_url }}

.github/workflows/default_completed.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ jobs:
2323
# Only notify slack on release events
2424
if: ${{ needs.context.outputs.is_release_master || needs.context.outputs.is_release_tag }}
2525
steps:
26+
- uses: actions/checkout@v4
2627
- name: Notify Slack
27-
uses: mozilla/addons/.github/actions/slack@main
28+
uses: ./.github/actions/slack
2829
env:
2930
retry_text: '[Rerun Workflow](${{ github.event.workflow_run.rerun_url }})'
3031
event_text: ${{ needs.context.outputs.is_release_master && 'Release Master' || 'Release Tag' }}

0 commit comments

Comments
 (0)