Skip to content

Commit e994f9c

Browse files
committed
more
1 parent 2c85a66 commit e994f9c

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

.github/workflows/default_completed.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,32 @@ 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
2726
- name: Notify Slack
28-
uses: ./.github/actions/slack
27+
uses: mozilla/addons/.github/actions/slack@main
2928
env:
30-
retry_text: '[Rerun Workflow](${{ github.event.workflow_run.rerun_url }})'
31-
event_text: ${{ needs.context.outputs.is_release_master && 'Release Master' || 'Release Tag' }}
29+
is_release_master: ${{ needs.context.outputs.is_release_master }}
30+
retry: '[Rerun Workflow](${{ github.event.workflow_run.rerun_url }})'
31+
event: ${{ env.is_release_master && 'Release Master' || 'Release Tag' }}
32+
conclusion: ${{ github.event.workflow_run.conclusion }}
33+
conclusion_emoji: ${{ env.conclusion == 'success' && ':white_check_mark:' || ':x:' }}
34+
text: ${{ env.conclusion_emoji }} ${{ env.event }} completed with ${{env.conclusion }}
35+
3236
with:
3337
slack_token: ${{ secrets.SLACK_TOKEN }}
3438
method: chat.postMessage
3539
payload: |
3640
channel: ${{ secrets.SLACK_ADDONS_PRODUCTION_CHANNEL }}
37-
blocks:
41+
text: ${{ env.text }}
42+
blocks: |
3843
- type: context
3944
elements:
45+
- type: mrkdwn
46+
text: ${{ env.text }}
4047
- type: mrkdwn
4148
text: ":github: *Workflow Run:* ${{ github.event.workflow_run.url }}"
49+
- type: mrkdwn
50+
text: ":bust_in_silhouette: *Triggered by:* @${{ github.actor }}"
51+
- type: section
52+
text:
53+
text: ${{ github.event.workflow_run.conclusion == 'failure' && env.retry || '' }}
54+

0 commit comments

Comments
 (0)