Skip to content

Commit 464fb9e

Browse files
authored
[CICD] Add slack message when cli release is complete (#1806)
## Summary TSIA ## How was it tested?
1 parent 8cf1821 commit 464fb9e

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/cli-release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,22 @@ jobs:
3131
# NOTE: cli-tests will NEVER run project-tests on MacOS.
3232
run-mac-tests: true
3333

34+
report-test-failures:
35+
runs-on: ubuntu-latest
36+
needs: tests
37+
if: failure() || cancelled()
38+
steps:
39+
- name: Notify jetpack.io slack of release status (only if tests fail)
40+
id: slack
41+
uses: slackapi/[email protected]
42+
with:
43+
payload: |
44+
{
45+
"status": "test ${{ needs.tests.result }}"
46+
}
47+
env:
48+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CLI_RELEASE_WEBHOOK_URL }}
49+
3450
edge:
3551
runs-on: ubuntu-latest
3652
environment: release
@@ -133,3 +149,14 @@ jobs:
133149
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
134150
TELEMETRY_KEY: ${{ secrets.TELEMETRY_KEY }}
135151
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
152+
- name: Notify jetpack.io slack of release status
153+
id: slack
154+
if: always()
155+
uses: slackapi/[email protected]
156+
with:
157+
payload: |
158+
{
159+
"status": "release ${{ job.status }}"
160+
}
161+
env:
162+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CLI_RELEASE_WEBHOOK_URL }}

0 commit comments

Comments
 (0)