Skip to content

Commit

Permalink
Try again
Browse files Browse the repository at this point in the history
  • Loading branch information
emcfarlane committed Jul 5, 2024
1 parent dd49135 commit 6192e30
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45814,15 +45814,15 @@ function createSummary(inputs, steps) {
message(steps.format?.status),
message(steps.breaking?.status),
message(steps.lint?.status),
`[${lib_github.context.serverUrl}/${lib_github.context.repo.owner}/${lib_github.context.repo.repo}/actions/runs/${lib_github.context.runId}](${lib_github.context.serverUrl}/${lib_github.context.repo.owner}/${lib_github.context.repo.repo}/actions/runs/${lib_github.context.runId})
${lib_github.context.serverUrl}/${lib_github.context.repo.owner}/${lib_github.context.repo.repo}/actions/runs/${lib_github.context.runId}`,
`<a href="${lib_github.context.serverUrl}/${lib_github.context.repo.owner}/${lib_github.context.repo.repo}/actions/runs/${lib_github.context.runId}">View</a>`,
new Date().toISOString(),
],
];
// If push or archive is enabled add a link to the registry.
//if (inputs.push) table.push(["push", message(steps.push?.status)]);
//if (inputs.archive) table.push(["archive", message(steps.archive?.status)]);
return core.summary.addTable(table);
return core.summary.addTable(table)
.addLink("View run", `${lib_github.context.serverUrl}/${lib_github.context.repo.owner}/${lib_github.context.repo.repo}/actions/runs/${lib_github.context.runId}`);
}
// runWorkflow runs the buf workflow. It returns the results of each step.
// First, it builds the input. If the build fails, the workflow stops.
Expand Down
10 changes: 7 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,19 @@ function createSummary(inputs: Inputs, steps: Steps): typeof core.summary {
message(steps.format?.status),
message(steps.breaking?.status),
message(steps.lint?.status),
`[${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}](${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId})
${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`,
`<a href="${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}">View</a>`,
new Date().toISOString(),
],
];
// If push or archive is enabled add a link to the registry.
//if (inputs.push) table.push(["push", message(steps.push?.status)]);
//if (inputs.archive) table.push(["archive", message(steps.archive?.status)]);
return core.summary.addTable(table);
return core.summary
.addTable(table)
.addLink(
"View run",
`${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`,
);
}

// runWorkflow runs the buf workflow. It returns the results of each step.
Expand Down

0 comments on commit 6192e30

Please sign in to comment.