From f33b6911e20bd4ace552408e8f01b5c47f979baa Mon Sep 17 00:00:00 2001 From: yoonseo choi Date: Thu, 18 Jul 2024 13:47:52 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=8A=AC=EB=9E=99=20=EC=A0=84=EC=86=A1?= =?UTF-8?q?=20=EC=8B=9C=20=EB=A9=98=EC=85=98=20=EA=B8=B0=EB=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 712391d3..94f3ebaf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,25 +53,9 @@ jobs: with: status: ${{ job.status }} author_name: Github Action Test - custom_payload: | - { - "text": ":출입금지: Failed GitHub Actions", - "attachments": [ - { - "author_name": "Github Action Test", - "fields": [ - {"title": "repo", "value": "${{ github.repository }}", "short": true}, - {"title": "message", "value": "${{ github.event.head_commit.message }}", "short": true}, - {"title": "commit", "value": "${{ github.sha }}", "short": true}, - {"title": "author", "value": "<@${{ steps.slack-user-mapping.outputs.slack_user_id }}>", "short": true}, - {"title": "action", "value": "${{ github.event.action }}", "short": true}, - {"title": "took", "value": "${{ github.run_duration_seconds }} sec", "short": true}, - {"title": "eventName", "value": "${{ github.event_name }}", "short": true}, - {"title": "pullRequest", "value": "${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}", "short": true} - ] - } - ] - } + fields: repo,pullRequest,eventName,author,message,commit,action,took + mention: '<@${{ steps.slack-user-mapping.outputs.slack_user_id }}>' + if_mention: failure,cancelled env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - if: failure() + if: always()