Skip to content

Commit

Permalink
[CICD] Add slack message when cli release is complete (#1806)
Browse files Browse the repository at this point in the history
## Summary

TSIA

## How was it tested?
  • Loading branch information
mikeland73 authored Feb 13, 2024
1 parent 8cf1821 commit 464fb9e
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/cli-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}

0 comments on commit 464fb9e

Please sign in to comment.