Skip to content

Commit

Permalink
added slack notification in case of build failure. (daxa-ai#490)
Browse files Browse the repository at this point in the history
Co-authored-by: Raj Burnwal <[email protected]>
  • Loading branch information
rajburnwal07 and Raj Burnwal authored Aug 26, 2024
1 parent fa0956e commit cfdbe5b
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/integration_run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,18 @@ jobs:
echo "Unexpected issue detected at running sample app."
cat /tmp/logs/pebblo.log
exit 1
fi
fi
- name: Upload Pebblo Report File
run: |
cd /home/runner/.pebblo/Pebblo_Automation_Testing_CSVLoader
cd /home/runner/.pebblo/Pebblo_Automation_Testing_CSVLoader
curl -F file=@pebblo_report.pdf https://slack.com/api/files.upload -H "Authorization: Bearer $SLACK_TOKEN" -F channels=$SLACK_CH -F "initial_comment=Pebblo Nightly Report"
- name: Report Status if test case or build failure
if: always()
uses: ravsamhq/notify-slack-action@master
with:
status: ${{ job.status }}
notify_when: 'failure'
env:
SLACK_WEBHOOK_URL: ${{ secrets.WEBHOOK_SECRET }}

0 comments on commit cfdbe5b

Please sign in to comment.