add SLACK WEBHOOK
This commit is contained in:
parent
3cfefd906a
commit
340703d5bd
28
.github/workflows/takt-action.yml
vendored
28
.github/workflows/takt-action.yml
vendored
@ -26,3 +26,31 @@ jobs:
|
||||
model: ${{ vars.TAKT_MODEL }}
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
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 }}"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user