From d8807e8b1a9d09ee1543e18618b4ef7e8203c616 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Sun, 18 Aug 2019 23:19:09 +0900 Subject: Try notifying Slack from Actions https://github.com/8398a7/action-slack https://github.com/marketplace/actions/action-slack --- .github/workflows/macos.yml | 12 ++++++++++++ .github/workflows/ubuntu.yml | 12 ++++++++++++ .github/workflows/windows.yml | 12 ++++++++++++ 3 files changed, 36 insertions(+) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index e357e3ad2e..3537d22c2b 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -58,3 +58,15 @@ jobs: if: matrix.test_task != 'check' - name: Leaked Globals run: make -s leaked-globals + - uses: 8398a7/action-slack@v1 + with: + type: success + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + if: success() + - uses: 8398a7/action-slack@v1 + with: + type: failure + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + if: failure() diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 8c2d3a2fd5..cd95fda494 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -58,3 +58,15 @@ jobs: continue-on-error: true - name: Leaked Globals run: make -s leaked-globals + - uses: 8398a7/action-slack@v1 + with: + type: success + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + if: success() + - uses: 8398a7/action-slack@v1 + with: + type: failure + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + if: failure() diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 984ac7011a..4dd1d1a8f3 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -53,3 +53,15 @@ jobs: run: | call "C:\Program Files (x86)\Microsoft Visual Studio\${{ matrix.vs }}\Enterprise\VC\Auxiliary\Build\vcvars64.bat" nmake ${{ matrix.test_task }} + - uses: 8398a7/action-slack@v1 + with: + type: success + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + if: success() + - uses: 8398a7/action-slack@v1 + with: + type: failure + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + if: failure() -- cgit v1.2.3