mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
Improve message
This commit is contained in:
parent
7f6e3dcf36
commit
5c05c34d1a
3
.github/slack.yml
vendored
3
.github/slack.yml
vendored
|
@ -8,7 +8,8 @@ title_link: https://support.github.com
|
||||||
text: |
|
text: |
|
||||||
*<{{workflowRunUrl}}|Workflow _{{workflow}}_ job _{{jobName}}_ triggered by _{{eventName}}_ is _{{jobStatus}}_>* for <{{refUrl}}|`{{ref}}`>
|
*<{{workflowRunUrl}}|Workflow _{{workflow}}_ job _{{jobName}}_ triggered by _{{eventName}}_ is _{{jobStatus}}_>* for <{{refUrl}}|`{{ref}}`>
|
||||||
*Error*
|
*Error*
|
||||||
{{steps.tests.outputs.slackMessage}}
|
{{jobSteps.tests.outputs.slackMessage}}
|
||||||
|
{{payload.slackMessage}}
|
||||||
|
|
||||||
fallback: |-
|
fallback: |-
|
||||||
[GitHub] {{workflow}} #{{runNumber}} {{jobName}} is {{jobStatus}}
|
[GitHub] {{workflow}} #{{runNumber}} {{jobName}} is {{jobStatus}}
|
||||||
|
|
2
.github/workflows/test-workflows.yml
vendored
2
.github/workflows/test-workflows.yml
vendored
|
@ -87,4 +87,4 @@ jobs:
|
||||||
status: ${{ job.status }}
|
status: ${{ job.status }}
|
||||||
channel: '#updates-build-alerts-test'
|
channel: '#updates-build-alerts-test'
|
||||||
webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
|
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.slackMessage}} / (${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
|
||||||
|
|
|
@ -492,7 +492,7 @@ export class ExecuteBatch extends BaseCommand {
|
||||||
});
|
});
|
||||||
result.slackMessage = `*${
|
result.slackMessage = `*${
|
||||||
result.summary.errors.length
|
result.summary.errors.length
|
||||||
} Executions errors*. Workflows failing: \n ${errorMessage.join('\n')} `;
|
} Executions errors*. Workflows failing: \ ${errorMessage.join('\\')} `;
|
||||||
} else {
|
} else {
|
||||||
result.slackMessage = `*${result.summary.errors.length} Executions errors*`;
|
result.slackMessage = `*${result.summary.errors.length} Executions errors*`;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue