We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8b61d7 commit 7e55eeaCopy full SHA for 7e55eea
.github/workflows/build.yml
@@ -150,4 +150,15 @@ jobs:
150
151
- name: Run Behat
152
run: vendor/bin/behat --colors --strict -vvv --no-interaction || vendor/bin/behat --colors --strict -vvv --no-interaction --rerun
153
-
+
154
+ - name: Failed build Slack notification
155
+ uses: rtCamp/action-slack-notify@v2
156
+ if: ${{ failure() && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') }}
157
+ env:
158
+ SLACK_CHANNEL: ${{ secrets.FAILED_BUILD_SLACK_CHANNEL }}
159
+ SLACK_COLOR: ${{ job.status }}
160
+ SLACK_ICON: https://github.com/rtCamp.png?size=48
161
+ SLACK_MESSAGE: ':x:'
162
+ SLACK_TITLE: Failed build on ${{ github.event.repository.name }} repository
163
+ SLACK_USERNAME: ${{ secrets.FAILED_BUILD_SLACK_USERNAME }}
164
+ SLACK_WEBHOOK: ${{ secrets.FAILED_BUILD_SLACK_WEBHOOK }}
0 commit comments