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

added slack notifications feature #1362

Merged
merged 1 commit into from
May 29, 2024
Merged
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
15 changes: 8 additions & 7 deletions .github/workflows/run_deploy_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,21 +70,22 @@ jobs:
SLACK_COLOR: failure
SLACK_CHANNEL: gha-deploy-to-dev
SLACK_WEBHOOK: ${{ secrets.SLACK_BOT_TOKEN }}
SLACK_TITLE: Run Unit Tests
SLACK_MESSAGE: 'Error when executing Unit tests!'
SLACK_TITLE: Deployment to DEV environment
SLACK_MESSAGE: 'Error when executing deployment!'

on-success:
runs-on: ubuntu-latest
if: ${{ always() && (needs.tests.result == 'success') }}
if: ${{ always() && (needs.deploy_to_ecs.result == 'success') }}
needs:
- tests
- deploy_to_ecs
steps:
- uses: actions/checkout@v4
- name: "Send Slack message on success"
uses: rtCamp/action-slack-notify@v2
env:
SLACK_COLOR: success
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL_TEST_WORKFLOW }}
SLACK_TITLE: Run Unit Tests
SLACK_MESSAGE: 'Unit tests performed successfully!'
SLACK_CHANNEL: gha-deploy-to-dev
SLACK_WEBHOOK: ${{ secrets.SLACK_BOT_TOKEN }}
SLACK_TITLE: Deployment to DEV environment
SLACK_MESSAGE: 'Deployment is successfull!'

Loading