Skip to content

Commit

Permalink
chore: Send slack notification on failure (#318)
Browse files Browse the repository at this point in the history
Send slack notification on failure
  • Loading branch information
dbolson authored Jun 5, 2024
1 parent 9812f02 commit 06073ae
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/check-openapi-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,19 @@ jobs:
- uses: actions/checkout@v4
- name: Check OpenAPI updates
run: make openapi-spec-check-updates
on-failure:
runs-on: ubuntu-latest
if: ${{ always() && (needs.check-open-api-spec-updates.result == 'failure' || needs.check-open-api-spec-updates.result == 'timed_out') }}
needs:
- check-open-api-spec-updates
steps:
- uses: actions/checkout@v4
- name: Send Slack notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: proj-cli
SLACK_COLOR: ${{ job.status }}
SLACK_ICON_EMOJI: ':launchdarkly:'
SLACK_TITLE: ':warning: The OpenAPI spec has changed and resources need to be updated.'
SLACK_USERNAME: github
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}

0 comments on commit 06073ae

Please sign in to comment.