Skip to content

Commit 5bfe92b

Browse files
committed
update action
1 parent 6c19fa1 commit 5bfe92b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,11 @@ jobs:
107107
- if: failure()
108108
uses: slackapi/slack-github-action@v2.0.0
109109
with:
110-
channel-id: alerts
110+
method: chat.postMessage
111+
token: ${{ secrets.SLACK_BOT_TOKEN }}
111112
payload: |
112113
{
114+
"channel": "alerts",
113115
"text": "Deployment of `${{ github.event.repository.name }}` failed",
114116
"blocks": [
115117
{
@@ -121,8 +123,6 @@ jobs:
121123
}
122124
]
123125
}
124-
env:
125-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
126126
deploy-publish:
127127
if: github.ref == 'refs/heads/main'
128128
needs: [build-api, build-publish, docker-build]
@@ -136,9 +136,11 @@ jobs:
136136
- if: failure()
137137
uses: slackapi/slack-github-action@v2.0.0
138138
with:
139-
channel-id: alerts
139+
method: chat.postMessage
140+
token: ${{ secrets.SLACK_BOT_TOKEN }}
140141
payload: |
141142
{
143+
"channel": "alerts",
142144
"text": "Deployment of `${{ github.event.repository.name }}` failed",
143145
"blocks": [
144146
{
@@ -150,5 +152,3 @@ jobs:
150152
}
151153
]
152154
}
153-
env:
154-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

0 commit comments

Comments
 (0)