-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CICD] Add slack message when cli release is complete (#1806)
## Summary TSIA ## How was it tested?
- Loading branch information
1 parent
8cf1821
commit 464fb9e
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,22 @@ jobs: | |
# NOTE: cli-tests will NEVER run project-tests on MacOS. | ||
run-mac-tests: true | ||
|
||
report-test-failures: | ||
runs-on: ubuntu-latest | ||
needs: tests | ||
if: failure() || cancelled() | ||
steps: | ||
- name: Notify jetpack.io slack of release status (only if tests fail) | ||
id: slack | ||
uses: slackapi/[email protected] | ||
with: | ||
payload: | | ||
{ | ||
"status": "test ${{ needs.tests.result }}" | ||
} | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CLI_RELEASE_WEBHOOK_URL }} | ||
|
||
edge: | ||
runs-on: ubuntu-latest | ||
environment: release | ||
|
@@ -133,3 +149,14 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
TELEMETRY_KEY: ${{ secrets.TELEMETRY_KEY }} | ||
SENTRY_DSN: ${{ secrets.SENTRY_DSN }} | ||
- name: Notify jetpack.io slack of release status | ||
id: slack | ||
if: always() | ||
uses: slackapi/[email protected] | ||
with: | ||
payload: | | ||
{ | ||
"status": "release ${{ job.status }}" | ||
} | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CLI_RELEASE_WEBHOOK_URL }} |