Skip to content

Commit

Permalink
Try adding slack notification for GitHub actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
samth authored Dec 10, 2020
1 parent d228aeb commit 9b1b850
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci-push-x86_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -409,3 +409,22 @@ jobs:
run: raco pkg install --auto db-test
- name: Run db tests
run: raco test -l tests/db/all-tests
slack:
runs-on: ubuntu-latest
needs: [test-cgc, test-3m, test-cs]

# this is required, otherwise it gets skipped if any needed jobs fail.
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idneeds
if: always()

steps:
- uses: technote-space/workflow-conclusion-action@v2
- name: Send Slack notification
uses: 8398a7/action-slack@v3
if: always()
with:
status: ${{ env.WORKFLOW_CONCLUSION }}
author_name: ${{ github.actor }}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK.URL }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 9b1b850

Please sign in to comment.