Skip to content

Commit c47d9b3

Browse files
authored
chore: fix slack dependency changes in workflows (#495)
1 parent ea5c7a7 commit c47d9b3

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

.github/workflows/deploy-sdk.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ jobs:
2828
- name: Setup Android SDK
2929
uses: ./.github/actions/setup-android
3030

31-
# Generate SDK size report to update in main branch before deploying new release.
32-
# The report is pushed by semantic-release action below by including files listed in the
33-
# `assets` array in the `.releaserc` file.
34-
- name: Generate SDK Size Report
35-
run: |
36-
./gradlew publishToMavenLocal
37-
./gradlew generateSdkSizeReport -PwriteReportTo=reports/sdk-binary-size.json
38-
env:
39-
# Use local version to make sure the report is generated for the current changes
40-
IS_DEVELOPMENT: 'true'
31+
# # Generate SDK size report to update in main branch before deploying new release.
32+
# # The report is pushed by semantic-release action below by including files listed in the
33+
# # `assets` array in the `.releaserc` file.
34+
# - name: Generate SDK Size Report
35+
# run: |
36+
# ./gradlew publishToMavenLocal
37+
# ./gradlew generateSdkSizeReport -PwriteReportTo=reports/sdk-binary-size.json
38+
# env:
39+
# # Use local version to make sure the report is generated for the current changes
40+
# IS_DEVELOPMENT: 'true'
4141

4242
# Semantic-release tool is used to:
4343
# 1. Determine the next semantic version for the software during deployment.
@@ -65,6 +65,8 @@ jobs:
6565
uses: slackapi/slack-github-action@v2.0.0
6666
if: steps.semantic-release.outputs.new_release_published == 'true' # only run if a git tag was made.
6767
with:
68+
webhook: ${{ secrets.SLACK_NOTIFY_RELEASES_WEBHOOK_URL }}
69+
webhook-type: incoming-webhook
6870
# Use block kit for format of the JSON payloads: https://app.slack.com/block-kit-builder
6971
payload: |
7072
{
@@ -110,6 +112,8 @@ jobs:
110112
uses: slackapi/slack-github-action@v2.0.0
111113
if: ${{ failure() }} # only run this if any previous step failed
112114
with:
115+
webhook: ${{ secrets.SLACK_NOTIFY_RELEASES_WEBHOOK_URL }}
116+
webhook-type: incoming-webhook
113117
# Use block kit for format of the JSON payloads: https://app.slack.com/block-kit-builder
114118
payload: |
115119
{
@@ -168,6 +172,8 @@ jobs:
168172
uses: slackapi/slack-github-action@v2.0.0
169173
if: ${{ success() }}
170174
with:
175+
webhook: ${{ secrets.SLACK_NOTIFY_RELEASES_WEBHOOK_URL }}
176+
webhook-type: incoming-webhook
171177
# Use block kit for format of the JSON payloads: https://app.slack.com/block-kit-builder
172178
payload: |
173179
{
@@ -205,6 +211,8 @@ jobs:
205211
uses: slackapi/slack-github-action@v2.0.0
206212
if: ${{ failure() }} # only run this if any previous step failed
207213
with:
214+
webhook: ${{ secrets.SLACK_NOTIFY_RELEASES_WEBHOOK_URL }}
215+
webhook-type: incoming-webhook
208216
# Use block kit for format of the JSON payloads: https://app.slack.com/block-kit-builder
209217
payload: |
210218
{

0 commit comments

Comments
 (0)