Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed Jul 17, 2024
1 parent 50e1d95 commit c497db9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,14 @@ jobs:
const e2eResults = e2eJobs.map(job => {
const icon = job.conclusion === 'success' ? ':white_check_mark:' : ':x:';
return `${icon} ${job.name}`;
const cleanName = jobs.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 = `[E2E Test Run Results](https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId})`;
const overallResultText = `<https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}|E2E Test Run Results>`;
const msg = `${overallResultIcon} ${overallResultText}\n${e2eResults.join('\n')}`;
await fetch(process.env.SLACK_WEBHOOK_URL, {
Expand Down

0 comments on commit c497db9

Please sign in to comment.