Skip to content

Commit

Permalink
gh-actions: support 2.0 slack that contains a breaking change and the…
Browse files Browse the repository at this point in the history
… signature changed (#4151) (#4158)

* gh-actions: support 2.0 slack that contains a breaking change and the signature changed

* fix

* correct commit

(cherry picked from commit e07703c)

Co-authored-by: Victor Martinez <[email protected]>
  • Loading branch information
mergify[bot] and v1v authored Dec 2, 2024
1 parent 9940385 commit 1ef97d1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/bump-elastic-stack-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,13 @@ jobs:
GIT_EMAIL: "41898282+github-actions[bot]@users.noreply.github.com"

- if: ${{ failure() }}
uses: slackapi/slack-github-action@70cd7be8e40a46e8b0eced40b0de447bdb42f68e # v1.26.0
uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0
with:
channel-id: '#fleet-notifications'
method: chat.postMessage
token: ${{ secrets.SLACK_BOT_TOKEN }}
payload: |
{
"channel": "#fleet-notifications",
"text": "${{ env.MESSAGE }}",
"blocks": [
{
Expand All @@ -60,5 +62,4 @@ jobs:
]
}
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
MESSAGE: ":traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, `@fleet_team` please look what's going on <${{ env.JOB_URL }}|here>"
7 changes: 4 additions & 3 deletions .github/workflows/bump-golang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ jobs:
GIT_EMAIL: "41898282+github-actions[bot]@users.noreply.github.com"

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

0 comments on commit 1ef97d1

Please sign in to comment.