add slack config

This commit is contained in:
agobrech 2023-05-22 11:36:35 +02:00
parent 1b6380d3bc
commit 8c0670749d
2 changed files with 32 additions and 1 deletions

31
.github/slack.yml vendored Normal file
View file

@ -0,0 +1,31 @@
username: Test-Workflow
icon_url: https://d33wubrfki0l68.cloudfront.net/b8db213a4d85ebec7b82272cacb727a05a9a1475/96e9f/_images/n8n-docs-icon.svg
pretext: Triggered via {{eventName}} by {{actor}} {{or action "action"}} {{ref}} `{{diffRef}}`
title: GitHub Actions
title_link: https://support.github.com
text: |
*<{{workflowRunUrl}}|Workflow _{{workflow}}_ job _{{jobName}}_ triggered by _{{eventName}}_ is _{{jobStatus}}_>* for <{{refUrl}}|`{{ref}}`>
*Error*
{{steps.tests.outputs}}
{{payload}}
fallback: |-
[GitHub] {{workflow}} #{{runNumber}} {{jobName}} is {{jobStatus}}
footer: >-
<{{repositoryUrl}}|{{repositoryName}}> {{workflow}} #{{runNumber}}
colors:
success: '#5DADE2'
failure: '#884EA0'
cancelled: '#A569BD'
default: '#7D3C98'
icons:
success: ':white_check_mark:'
failure: ':grimacing:'
cancelled: ':x:'
skipped: ':heavy_minus_sign:'
default: ':interrobang:'

View file

@ -103,4 +103,4 @@ jobs:
status: ${{ job.status }}
channel: '#updates-build-alerts-test'
webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
message: ${{ steps.tests.outputs.slackMessage}} (${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
message: ${{ steps.tests.outputs}} (${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})