mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
Fix output data to slack
This commit is contained in:
parent
d94b712569
commit
dee3e705bd
4
.github/workflows/test-workflows.yml
vendored
4
.github/workflows/test-workflows.yml
vendored
|
@ -101,6 +101,6 @@ jobs:
|
|||
if: failure()
|
||||
with:
|
||||
status: ${{ job.status }}
|
||||
channel: '#updates-build-alerts'
|
||||
channel: '#updates-build-alerts-test'
|
||||
webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
|
||||
message: ${{ steps.tests.outputs.slackMessage}} \n (${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
|
||||
message: ${{ steps.tests.outputs}} ${{ steps.tests.outcome}} ${{steps.tests.conclusion}} \n (${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
|
||||
|
|
|
@ -492,10 +492,13 @@ export class ExecuteBatch extends BaseCommand {
|
|||
result.slackMessage = `*${
|
||||
result.summary.errors.length
|
||||
} Executions errors*. Workflows failing: \n ${errorMessage.join('\n')} `;
|
||||
console.log(result.slackMessage);
|
||||
} else {
|
||||
result.slackMessage = `*${result.summary.errors.length} Executions errors*`;
|
||||
console.log(result.slackMessage);
|
||||
}
|
||||
}
|
||||
console.log(result);
|
||||
res(result);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue