From ad7a0339b2f6dc0075d8ea772f90f25c2a25a3f6 Mon Sep 17 00:00:00 2001 From: Renato Arruda Date: Fri, 1 Oct 2021 23:48:36 +0200 Subject: [PATCH] build: add slack notification with build status --- .github/workflows/pull_request.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index c5525d1b..54a76b42 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -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