add SLACK WEBHOOK

This commit is contained in:
nrslib 2026-02-01 10:18:22 +09:00
parent 3cfefd906a
commit 340703d5bd

View File

@ -26,3 +26,31 @@ jobs:
model: ${{ vars.TAKT_MODEL }} model: ${{ vars.TAKT_MODEL }}
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
log_output: ${{ vars.TAKT_LOG_OUTPUT || 'false' }} log_output: ${{ vars.TAKT_LOG_OUTPUT || 'false' }}
- name: Notify Slack
if: always()
uses: slackapi/slack-github-action@v2.0.0
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
payload: |
{
"text": "${{ job.status == 'success' && '✅' || '⚠️' }} TAKT Action ${{ job.status }}",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*${{ job.status == 'success' && '✅' || '⚠️' }} TAKT Action ${{ job.status }}*\n<${{ github.event.issue.html_url }}|Issue #${{ github.event.issue.number }}>: ${{ github.event.issue.title }}\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View logs>"
}
},
{
"type": "context",
"elements": [
{
"type": "mrkdwn",
"text": "Triggered by @${{ github.event.comment.user.login }}"
}
]
}
]
}