61
61
method : chat.postMessage
62
62
token : ${{ secrets.SLACK_BOT_TOKEN }}
63
63
payload : |
64
- "channel": "${{ vars.SLACK_CHANNEL_ID }}",
65
- "text": "Release *${{ env.VERSION_NAME }}* is on the way :rocket:
66
- <${{ github.server_url }}/${{ github.actor }}|@${{ github.actor }}> | <${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}|commit> <!channel>"
64
+ {
65
+ "channel": "${{ vars.SLACK_CHANNEL_ID }}",
66
+ "text": "Release *${{ env.VERSION_NAME }}* is on the way :rocket: <${{ github.server_url }}/${{ github.actor }}|@${{ github.actor }}> | <${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}|commit> <!channel>"
67
+ }
67
68
68
69
- name : Configure git
69
70
run : |
@@ -105,7 +106,6 @@ jobs:
105
106
echo "JOB_SUCCESS=true" >> $GITHUB_ENV
106
107
107
108
- name : " @slack Share release process completion"
108
- # cancellable always() https://docs.github.com/en/actions/learn-github-actions/expressions#status-check-functions
109
109
if : ${{ !cancelled() }}
110
110
111
111
env :
@@ -119,7 +119,9 @@ jobs:
119
119
method : chat.postMessage
120
120
token : ${{ secrets.SLACK_BOT_TOKEN }}
121
121
payload : |
122
- "channel": "${{ vars.SLACK_CHANNEL_ID }}",
123
- "text": "${{ env.JOB_SUCCESS == 'true' && env.ON_SUCCESS || env.ON_FAILURE }}",
124
- "thread_ts": "${{ steps.slack.outputs.ts }}",
125
- "reply_broadcast": true
122
+ {
123
+ "channel": "${{ vars.SLACK_CHANNEL_ID }}",
124
+ "text": "${{ env.JOB_SUCCESS == 'true' && env.ON_SUCCESS || env.ON_FAILURE }}",
125
+ "thread_ts": "${{ steps.slack.outputs.ts }}",
126
+ "reply_broadcast": true
127
+ }
0 commit comments