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 e3e7cfa commit ad7a033
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ 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: PR built on Ruby {{ matrix.ruby-version }}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

finish:
needs: test
Expand Down

0 comments on commit ad7a033

Please sign in to comment.