Skip to content

Commit 5316bd4

Browse files
committed
ci: debug artifact paths
1 parent 2b6b345 commit 5316bd4

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.github/workflows/size-comment.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,17 @@ jobs:
2626
run-id: ${{ github.event.workflow_run.id }}
2727
path: .
2828

29+
- name: 🔍 Debug downloaded artifacts
30+
run: |
31+
echo "=== Downloaded artifacts structure ==="
32+
ls -la
33+
echo "=== head-stats contents ==="
34+
ls -la head-stats/ || echo "head-stats not found"
35+
echo "=== base-stats contents ==="
36+
ls -la base-stats/ || echo "base-stats not found"
37+
echo "=== pr-number contents ==="
38+
ls -la pr-number/ || echo "pr-number not found"
39+
2940
- name: 🔍 Get PR number from artifact
3041
id: pr
3142
run: |

scripts/parse-sizes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ export function generateSizeComment(packages: string[], statsDir = '.'): string
107107
let commentBody = '## 📦 Bundle Size Comparison\n\n'
108108

109109
for (const pkg of packages) {
110-
const headPath = `${statsDir}/head-stats/${pkg}/stats.json`
111-
const basePath = `${statsDir}/base-stats/${pkg}/stats.json`
110+
const headPath = `${statsDir}/head-stats/packages/${pkg}/stats.json`
111+
const basePath = `${statsDir}/base-stats/packages/${pkg}/stats.json`
112112

113113
const comparison = comparePackage(pkg, headPath, basePath)
114114

0 commit comments

Comments
 (0)