From e139d27748a0548c0ae10fb483c7389caacd4b3d Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Mon, 19 Aug 2019 03:14:18 +0900 Subject: Make Slack notification available for macOS / Windows as well. Docker-based GitHub Action does not work on these OSes. --- .github/workflows/macos.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to '.github/workflows/macos.yml') diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index d974a9f7ad..0b09c21e93 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -49,13 +49,17 @@ jobs: MSPECOPT: "-ff" # not using `-j` because sometimes `mspec -j` silently dies - name: Leaked Globals run: make -s leaked-globals - - uses: ./.github/actions/notify-slack + - uses: k0kubun/action-slack@v1.0.0 with: - status: ${{ job.status }} - matrix_name: ${{ matrix.test_task }} - committer_name: ${{ github.event.head_commit.committer.name }} - commit_message: ${{ github.event.head_commit.message }} - commit_timestamp: ${{ github.event.head_commit.timestamp }} + payload: | + { + "attachments": [{ + "title": "${{ job.status }}: ${{ github.workflow }} / ${{ matrix.test_task }}", + "title_link": "https://github.com/${{ github.repository }}/commit/${{ github.sha }}/checks", + "text": "${{ github.repository }}@${{ github.ref }}: \nby ${{ github.event.head_commit.committer.name }} on ${{ github.event.head_commit.timestamp }}: ${{ github.event.head_commit.message }}", + "color": "danger" + }] + } env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} if: failure() && github.event_name == 'push' -- cgit v1.2.3