4646 ref_link="$repo_url/commit/$sha"
4747 elif [[ "$event" == "release" ]]; then
4848 env="production"
49- ref_link="$repo_url/releases/tag/$head_branch "
49+ ref_link="$repo_url/releases/tag/$branch "
5050 fi
5151
5252 if [[ "$conclusion" == "success" ]]; then
6868
6969 slack_notification :
7070 needs : context
71- strategy :
72- matrix :
73- include :
74- # The real message based on the context of the workflow
75- - emoji : ${{ needs.context.outputs.emoji }}
76- actor : ${{ needs.context.outputs.actor }}
77- event : ${{ needs.context.outputs.event }}
78- conclusion : ${{ needs.context.outputs.conclusion }}
79- env : ${{ needs.context.outputs.env }}
80- ref : ${{ needs.context.outputs.ref }}
81- ref_link : ${{ needs.context.outputs.ref_link }}
82- workflow_id : ${{ needs.context.outputs.workflow_id }}
83- workflow_url : ${{ needs.context.outputs.workflow_url }}
84- # No Emoji
85- - emoji : ' '
86- actor : ${{ needs.context.outputs.actor }}
87- event : ${{ needs.context.outputs.event }}
88- conclusion : ${{ needs.context.outputs.conclusion }}
89- env : ${{ needs.context.outputs.env }}
90- ref : ${{ needs.context.outputs.ref }}
91- ref_link : ${{ needs.context.outputs.ref_link }}
92- workflow_id : ${{ needs.context.outputs.workflow_id }}
93- workflow_url : ${{ needs.context.outputs.workflow_url }}
94- # Custom Emoji and ref
95- - emoji : ' :party_blob:'
96- actor : ${{ github.event.workflow_run.actor.login }}
97- event : ' push'
98- conclusion : ' failure'
99- env : ' dev'
100- ref : ' It is time to party!'
101- ref_link : ${{ needs.context.outputs.ref_link }}
102- workflow_id : ${{ needs.context.outputs.workflow_id }}
103- workflow_url : ${{ needs.context.outputs.workflow_url }}
10471
10572 runs-on : ubuntu-latest
10673 steps :
@@ -109,12 +76,12 @@ jobs:
10976 with :
11077 slack_token : ${{ secrets.SLACK_TOKEN }}
11178 slack_channel : ${{ secrets.SLACK_ADDONS_PRODUCTION_CHANNEL }}
112- emoji : ${{ matrix .emoji }}
113- actor : ${{ matrix .actor }}
114- event : ${{ matrix .event }}
115- conclusion : ${{ matrix .conclusion }}
116- env : ${{ matrix .env }}
117- ref : ${{ matrix .ref }}
118- ref_link : ${{ matrix .ref_link }}
119- workflow_id : ${{ matrix .workflow_id }}
120- workflow_url : ${{ matrix .workflow_url }}
79+ emoji : ${{ needs.context.outputs .emoji }}
80+ actor : ${{ needs.context.outputs .actor }}
81+ event : ${{ needs.context.outputs .event }}
82+ conclusion : ${{ needs.context.outputs .conclusion }}
83+ env : ${{ needs.context.outputs .env }}
84+ ref : ${{ needs.context.outputs .ref }}
85+ ref_link : ${{ needs.context.outputs .ref_link }}
86+ workflow_id : ${{ needs.context.outputs .workflow_id }}
87+ workflow_url : ${{ needs.context.outputs .workflow_url }}
0 commit comments