File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -43,11 +43,13 @@ jobs:
43
43
GIT_EMAIL : " 41898282+github-actions[bot]@users.noreply.github.com"
44
44
45
45
- if : ${{ failure() }}
46
- uses : slackapi/slack-github-action@70cd7be8e40a46e8b0eced40b0de447bdb42f68e # v1.26 .0
46
+ uses : slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0 .0
47
47
with :
48
- channel-id : ' #fleet-notifications'
48
+ method : chat.postMessage
49
+ token : ${{ secrets.SLACK_BOT_TOKEN }}
49
50
payload : |
50
51
{
52
+ "channel": "#fleet-notifications",
51
53
"text": "${{ env.MESSAGE }}",
52
54
"blocks": [
53
55
{
60
62
]
61
63
}
62
64
env :
63
- SLACK_BOT_TOKEN : ${{ secrets.SLACK_BOT_TOKEN }}
64
65
MESSAGE : " :traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, `@fleet_team` please look what's going on <${{ env.JOB_URL }}|here>"
Original file line number Diff line number Diff line change @@ -33,11 +33,13 @@ jobs:
33
33
GIT_EMAIL : " 41898282+github-actions[bot]@users.noreply.github.com"
34
34
35
35
- if : ${{ failure() }}
36
- uses : slackapi/slack-github-action@70cd7be8e40a46e8b0eced40b0de447bdb42f68e # v1.26 .0
36
+ uses : slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0 .0
37
37
with :
38
- channel-id : ' #fleet-notifications'
38
+ method : chat.postMessage
39
+ token : ${{ secrets.SLACK_BOT_TOKEN }}
39
40
payload : |
40
41
{
42
+ "channel": "#fleet-notifications",
41
43
"text": "${{ env.MESSAGE }}",
42
44
"blocks": [
43
45
{
50
52
]
51
53
}
52
54
env :
53
- SLACK_BOT_TOKEN : ${{ secrets.SLACK_BOT_TOKEN }}
54
55
MESSAGE : " :traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, `@fleet_team` please look what's going on <${{ env.JOB_URL }}|here>"
You can’t perform that action at this time.
0 commit comments