Skip to content

Commit 4578eb9

Browse files
ci: bump slackapi/slack-github-action from 1.27.0 to 2.0.0 (#457)
* ci: bump slackapi/slack-github-action from 1.27.0 to 2.0.0 Bumps [slackapi/slack-github-action](https://github.com/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@v1.27.0...v2.0.0) --- updated-dependencies: - dependency-name: slackapi/slack-github-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * update action --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Julian Gruber <julian@juliangruber.com>
1 parent e918219 commit 4578eb9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,13 @@ jobs:
105105
env:
106106
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
107107
- if: failure()
108-
uses: slackapi/slack-github-action@v1.27.0
108+
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]
@@ -134,11 +134,13 @@ jobs:
134134
env:
135135
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN_PUBLISH }}
136136
- if: failure()
137-
uses: slackapi/slack-github-action@v1.27.0
137+
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)