Skip to content

Commit cccf9a4

Browse files
committed
chore: change Rsdoctor action config
1 parent cb8d4da commit cccf9a4

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/index.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,12 @@ function runRsdoctorViaNode(requirePath: string, args: string[] = []) {
158158
const uploadRes = await uploadArtifact(diffHtmlPath, currentCommitHash);
159159
console.log(`✅ Uploaded bundle diff HTML, artifact id: ${uploadRes.id}`);
160160

161-
const runLink = `${process.env.GITHUB_SERVER_URL}/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}`;
161+
const artifactDownloadLink = `${process.env.GITHUB_SERVER_URL}/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}/artifacts/${uploadRes.id}`;
162162

163163
// Add to GitHub summary
164164
await summary
165165
.addHeading('🧮 Bundle Diff (Rsdoctor)', 3)
166-
.addLink('Open workflow run to download the diff HTML', runLink)
166+
.addLink('Download Bundle Diff HTML Report', artifactDownloadLink)
167167
.addSeparator();
168168

169169
// Add comment to PR if this is a pull request
@@ -178,11 +178,10 @@ function runRsdoctorViaNode(requirePath: string, args: string[] = []) {
178178
179179
A detailed bundle diff analysis has been generated using Rsdoctor. You can download and view the interactive HTML report from the workflow artifacts.
180180
181-
📦 **Download Link**: [Download Bundle Diff Report](${runLink})
181+
📦 **Download Link**: [Download Bundle Diff Report](${artifactDownloadLink})
182182
183183
${bundleAnalysisMarkdown}
184-
185-
*Generated by Bundle Size Action*`;
184+
`;
186185

187186
try {
188187
await octokit.rest.issues.createComment({

src/report.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,6 @@ export async function generateBundleAnalysisReport(current: BundleAnalysis, base
253253

254254
await summary
255255
.addSeparator()
256-
.addRaw('<sub>Generated by Bundle Size Action</sub>');
257256

258257
await summary.write();
259258

@@ -304,7 +303,6 @@ export async function generateSizeReport(current: SizeData, baseline?: SizeData)
304303

305304
await summary
306305
.addSeparator()
307-
.addRaw('<sub>Generated by Bundle Size Action</sub>');
308306

309307
await summary.write();
310308

0 commit comments

Comments
 (0)