Skip to content

Commit a0f6d38

Browse files
fix: ensure skipped_modules.json exists for artifact upload
Create an empty skipped_modules.json if the container build doesn't produce one, preventing artifact download failures in the validation step.
1 parent 732f217 commit a0f6d38

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/container-build.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ jobs:
8888
if [ -f build-output/data/skipped_modules.json ]; then
8989
mkdir -p website/data
9090
cp build-output/data/skipped_modules.json website/data/skipped_modules.json
91+
else
92+
# Create empty skipped_modules.json if pipeline didn't create it
93+
mkdir -p website/data
94+
echo '[]' > website/data/skipped_modules.json
9195
fi
9296
rm -rf build-output
9397
- name: Upload pipeline data for validation

0 commit comments

Comments
 (0)