Skip to content

Commit

Permalink
chore(git): update github slack messages
Browse files Browse the repository at this point in the history
  • Loading branch information
dtfiedler authored and dtfiedler committed Aug 7, 2024
1 parent 9d15237 commit 32b58d9
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ concurrency:
group: ${{ github.ref_name }}
cancel-in-progress: true

on:
pull_request:
workflow_call:
on: [push, workflow_dispatch]

jobs:
build:
Expand Down Expand Up @@ -51,18 +49,9 @@ jobs:
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: Send Slack failure notification
- name: Send Slack notification
uses: rtCamp/action-slack-notify@v2
if: failure() && (github.event_name == 'pull_request' && (github.base_ref == 'main' || github.base_ref == 'alpha'))
env:
SLACK_TITLE: Build / E2E tests failed!
SLACK_COLOR: danger
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

- name: Send Slack success notification
uses: rtCamp/action-slack-notify@v2
if: success() && (github.event_name == 'pull_request' && (github.base_ref == 'main' || github.base_ref == 'alpha'))
env:
SLACK_TITLE: Build / E2E tests succeeded!
SLACK_COLOR: good
SLACK_TITLE: ${{ job.status == 'success' && 'Build / E2E tests succeeded!' || 'Build / E2E tests failed!' }}
SLACK_COLOR: ${{ job.status == 'success' && 'good' || 'danger' }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

0 comments on commit 32b58d9

Please sign in to comment.