test-failure #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Failure Notification | |
on: | |
repository_dispatch: | |
types: [ test-failure ] | |
jobs: | |
slack-notification: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Notify Slack on Build Failure | |
uses: rtCamp/action-slack-notify@v2 | |
env: | |
SLACK_COLOR: ${{ job.status }} | |
SLACK_MESSAGE: "View details on GitHub Actions: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} <@U042HRTL4DT>. Triggered by repository: ${{ github.event.repository.full_name }} and job: ${{ github.job }}" | |
SLACK_TITLE: "❌ ${{ github.repository }} ❌ Tests failed on branch ${{ github.ref }} for commit ${{ github.sha }} in repository ${{github.repository}}" | |
SLACK_USERNAME: liquibot | |
SLACK_WEBHOOK: ${{ secrets.NIGHTLY_BUILDS_SLACK_WEBHOOK }} | |
SLACK_ICON_EMOJI: ":robot_face:" | |
SLACK_FOOTER: "${{ github.repository }}" | |
SLACK_LINK_NAMES: true |