Skip to content

Commit e07703c

Browse files
authored
gh-actions: support 2.0 slack that contains a breaking change and the signature changed (#4151)
* gh-actions: support 2.0 slack that contains a breaking change and the signature changed * fix * correct commit
1 parent 4132a50 commit e07703c

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/bump-elastic-stack-snapshot.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,13 @@ jobs:
4343
GIT_EMAIL: "41898282+github-actions[bot]@users.noreply.github.com"
4444

4545
- if: ${{ failure() }}
46-
uses: slackapi/slack-github-action@70cd7be8e40a46e8b0eced40b0de447bdb42f68e # v1.26.0
46+
uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0
4747
with:
48-
channel-id: '#fleet-notifications'
48+
method: chat.postMessage
49+
token: ${{ secrets.SLACK_BOT_TOKEN }}
4950
payload: |
5051
{
52+
"channel": "#fleet-notifications",
5153
"text": "${{ env.MESSAGE }}",
5254
"blocks": [
5355
{
@@ -60,5 +62,4 @@ jobs:
6062
]
6163
}
6264
env:
63-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
6465
MESSAGE: ":traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, `@fleet_team` please look what's going on <${{ env.JOB_URL }}|here>"

.github/workflows/bump-golang.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@ jobs:
3333
GIT_EMAIL: "41898282+github-actions[bot]@users.noreply.github.com"
3434

3535
- if: ${{ failure() }}
36-
uses: slackapi/slack-github-action@70cd7be8e40a46e8b0eced40b0de447bdb42f68e # v1.26.0
36+
uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0
3737
with:
38-
channel-id: '#fleet-notifications'
38+
method: chat.postMessage
39+
token: ${{ secrets.SLACK_BOT_TOKEN }}
3940
payload: |
4041
{
42+
"channel": "#fleet-notifications",
4143
"text": "${{ env.MESSAGE }}",
4244
"blocks": [
4345
{
@@ -50,5 +52,4 @@ jobs:
5052
]
5153
}
5254
env:
53-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
5455
MESSAGE: ":traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, `@fleet_team` please look what's going on <${{ env.JOB_URL }}|here>"

0 commit comments

Comments
 (0)