Skip to content

Commit

Permalink
build: add slack notification with build status
Browse files Browse the repository at this point in the history
  • Loading branch information
rarruda committed Oct 1, 2021
1 parent d664829 commit 44c408f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/pull_request.yml
Expand Up @@ -42,6 +42,15 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: run-${{ matrix.test_number }}
parallel: true
- name: Notify Slack of pipeline completion
uses: 8398a7/action-slack@v3
if: ${{ github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name }}
with:
status: ${{ job.status }}
text: Built on ${{ matrix.os }} - Ruby ${{ matrix.ruby-version }}
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

finish:
needs: test
Expand Down

0 comments on commit 44c408f

Please sign in to comment.