diff options
Diffstat (limited to '.github/workflows/mjit.yml')
-rw-r--r-- | .github/workflows/mjit.yml | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/.github/workflows/mjit.yml b/.github/workflows/mjit.yml index 0bd2f347df..4814ae1b0f 100644 --- a/.github/workflows/mjit.yml +++ b/.github/workflows/mjit.yml @@ -58,26 +58,12 @@ jobs: with: payload: | { - "attachments": [{ - "text": "${{ github.workflow }} / ${{ matrix.test_task }} ${{ matrix.jit_opts }} <https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ steps.commit_info.outputs.COMMIT_DATE }} #${{ steps.commit_info.outputs.COMMIT_NUMBER_OF_DAY }}> " + - "(<https://github.com/${{ github.repository }}/commit/${{ github.sha }}|" + "${{ github.sha }}".substring(0, 10) + ">) " + - "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: | - { "ci": "GitHub Actions", "env": "${{ github.workflow }} / ${{ matrix.test_task }} ${{ matrix.jit_opts }}", "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' |