Skip to content

Commit 8f810cb

Browse files
dependabot[bot]v1v
andauthored
build(deps): bump slackapi/slack-github-action from 1.27.0 to 2.0.0 in the github-actions group (elastic#14656)
* build(deps): bump slackapi/slack-github-action Bumps the github-actions group with 1 update: [slackapi/slack-github-action](https://github.com/slackapi/slack-github-action). Updates `slackapi/slack-github-action` from 1.27.0 to 2.0.0 - [Release notes](https://github.com/slackapi/slack-github-action/releases) - [Commits](slackapi/slack-github-action@37ebaef...485a9d4) --- updated-dependencies: - dependency-name: slackapi/slack-github-action dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions ... Signed-off-by: dependabot[bot] <[email protected]> * fix support for the slack 2.0 --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Victor Martinez <[email protected]>
1 parent e31e385 commit 8f810cb

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/benchmarks.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -256,13 +256,14 @@ jobs:
256256

257257
# Notify result to Slack only on schedule (nightly run)
258258
- if: github.event_name == 'schedule'
259-
uses: slackapi/slack-github-action@37ebaef184d7626c5f204ab8d3baff4262dd30f0 # v1.27.0
260-
env:
261-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
259+
uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0
262260
with:
263-
channel-id: "#apm-server"
261+
method: chat.postMessage
262+
token: ${{ secrets.SLACK_BOT_TOKEN }}
264263
payload: |
265264
{
265+
"channel": "#apm-server",
266+
"text": "${{ github.event_name == 'schedule' && 'Nightly' || '' }} APM Server benchmarks succesfully executed!",
266267
"blocks": [
267268
{
268269
"type": "section",

0 commit comments

Comments
 (0)