From 4015f27a4d032c163411e0fa0caa3a1507769040 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Mon, 9 Mar 2020 22:31:50 -0700 Subject: Drop direct Slack notification from CIs All Slack alerts have been migrated to a bot made by mame-san --- .github/workflows/ubuntu.yml | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) (limited to '.github/workflows/ubuntu.yml') diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 9b4237d967..4f50216569 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -67,21 +67,6 @@ jobs: # Remove minitest from TEST_BUNDLED_GEMS_ALLOW_FAILURES if https://github.com/seattlerb/minitest/pull/798 is resolved # rss needs to add workaround for the non rexml environment TEST_BUNDLED_GEMS_ALLOW_FAILURES: "minitest,xmlrpc,rss" - - uses: k0kubun/action-slack@v2.0.0 - with: - payload: | - { - "attachments": [{ - "text": "${{ matrix.os }} / ${{ matrix.test_task }} " + - "() " + - "of ${{ github.repository }}@" + "${{ github.ref }}".split('/').reverse()[0] + " by ${{ github.event.head_commit.committer.name }} failed", - "color": "danger" - }] - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - if: failure() && github.event_name == 'push' - # New Slack notification (experimental) - uses: k0kubun/action-slack@v2.0.0 with: payload: | @@ -89,8 +74,9 @@ jobs: "ci": "GitHub Actions", "env": "${{ matrix.os }} / ${{ matrix.test_task }}", "url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}", - "commit": "${{ github.sha }}" + "commit": "${{ github.sha }}", + "branch": "${{ github.ref }}".split('/').reverse()[0] } env: - SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} + SLACK_WEBHOOK_URL: ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot if: failure() && github.event_name == 'push' -- cgit v1.2.3