Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt committed Oct 9, 2024
1 parent 0d2d558 commit 575cac6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/create_test_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
const mergeWorkflowUrl = `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`;
const reportMd = await fs.promises.readFile('report.md', 'utf8');
const commitSha = '${{ github.sha }}vs${{ github.event.workflow_run.head_commit }}';
const commitSha = '${{ github.sha }}vs${{ github.event.workflow_run.head_commit.id }}';
const newTableRow = `| [${{ github.event.workflow_run.name }}](${mergeWorkflowUrl}) | ${commitSha} ${reportMd} [Open](${reportUrl}) |`;
Expand All @@ -107,8 +107,7 @@ jobs:
const headerIndex = lines.findIndex(line => line.includes(mergeReportsHeader));
const tableStartIndex = lines.findIndex((line, index) => index > headerIndex && line.includes(tableHeader));
// Insert new row after the table header
lines.splice(tableStartIndex + 1, 0, newTableRow);
lines.splice(tableStartIndex + 2, 0, newTableRow);
const updatedBody = lines.join('\n');
Expand Down

0 comments on commit 575cac6

Please sign in to comment.