Skip to content

Commit

Permalink
Add Slack notification when tests fail + set cron to run tests daily …
Browse files Browse the repository at this point in the history
…at 5am (#111)
  • Loading branch information
sierpinskid authored Sep 11, 2024
1 parent b9765b5 commit 1b6228b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/main.ci.cd.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
schedule:
- cron: "0 5 * * *" # run daily at 5 AM (UTC)

jobs:
build:
Expand Down Expand Up @@ -230,3 +232,13 @@ jobs:
with:
name: Build_${{ env.BUILD_NAME }}
path: $(pwd)/SampleAppBuild/${{ env.BUILD_NAME }}

- name: Notify Slack if failed
uses: voxmedia/github-action-slack-notify-build@v1
if: always() && failure()
with:
channel_id: C02RPDF7T63
color: danger
status: FAILED
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}

0 comments on commit 1b6228b

Please sign in to comment.