Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send slack notification on main build failure #17

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/full_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,11 @@ jobs:
cache: pip
cache-dependency-path: deeplake/requirements/*.txt

- name: Check disk space
run: |
df -h
du -d 1 -h

- name: Install Libraries
run: |
pip3 install --upgrade pip --user
Expand Down Expand Up @@ -366,3 +371,21 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.token }}
SONAR_TOKEN: ${{ secrets.sonar_token }}

notify:
needs: [ report ]
name: Send Notifications
runs-on: ubuntu-latest
if: always() && needs.report.result != 'cancelled'
steps:
- name: Build Failure Slack Notification
if: failure() && github.event_name == 'push' && github.head == "refs/heads/main" && github.repository_owner == 'activeloopai'
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: deeplake
SLACK_MESSAGE: "Deeplake build failed"
SLACK_USERNAME: "Tensie"
SLACK_FOOTER: ""
MSG_MINIMAL: actions url
SLACK_ICON_EMOJI: ':warning:'
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}