diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 9f4bccdc39..40fa8c2438 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -160,14 +160,19 @@ jobs: const e2eResults = e2eJobs.map(job => { const icon = job.conclusion === 'success' ? ':white_check_mark:' : ':x:'; - const cleanName = jobs.name.split("/")[0]; + const cleanName = job.name.split("/")[0]; return `${icon} ${cleanName}`; }); const overallResultStr = '${{ needs.e2e.result }}'; const overallResultPassing = overallResultStr === 'success' || overallResultStr === 'skipped'; const overallResultIcon = overallResultPassing ? ':white_check_mark:' : ':x:'; - const overallResultText = ``; + let overallResultText = ``; + if (context.eventName === 'push') { + overallResultText += ` for push to ${context.ref}`; + } else if (context.eventName === 'schedule') { + overallResultText += ` for scheduled run`; + } const msg = `${overallResultIcon} ${overallResultText}\n${e2eResults.join('\n')}`; await fetch(process.env.SLACK_WEBHOOK_URL, {