Skip to content

Commit 5c44f0b

Browse files
authored
update slack GHA (#651)
The slack GHA is failing since some time because the API changed. This change fixes the problem
1 parent 8220869 commit 5c44f0b

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/e2e.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,11 @@ jobs:
5858
uses: slackapi/slack-github-action@b0fa283ad8fea605de13dc3f449259339835fc52
5959
if: ${{ github.ref_name == 'main' && github.event_name == 'schedule' && always() }}
6060
with:
61-
# Slack channel id, channel name, or user id to post message.
62-
# See also: https://api.slack.com/methods/chat.postMessage#channels
63-
# You can pass in multiple channels to post to by providing a comma-delimited list of channel IDs.
64-
channel-id: 'C03NF7KH128'
65-
# For posting a simple plain text message
61+
method: chat.postMessage
62+
token: ${{ secrets.OCM_GITHUB_SLACK_BOT_TOKEN }}
6663
payload: |
6764
{
65+
"channel": "C03NF7KH128",
6866
"text": "${{ github.repository }} e2e Tests Status: ${{ steps.e2e-tests.conclusion }}",
6967
"blocks": [
7068
{
@@ -77,5 +75,3 @@ jobs:
7775
}
7876
]
7977
}
80-
env:
81-
SLACK_BOT_TOKEN: ${{ secrets.OCM_GITHUB_SLACK_BOT_TOKEN }}

0 commit comments

Comments
 (0)