Skip to content

Commit 4d74596

Browse files
committed
Fix CI: handle missing polkadot-sdk branch and zombienet directory cleanup
- Add fallback to commit hash when bko-bulletin-para-support branch doesn't exist - Clean up zombienet directory before starting to prevent interactive prompts - Fixes 'Directory already exists' prompt that was blocking CI runs
1 parent 70c09bb commit 4d74596

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

examples/justfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,12 @@ bulletin-solo-zombienet-start runtime="bulletin-polkadot-runtime":
149149
# Clean up stale PID file
150150
[ -f "{{ PID_DIR }}/zombienet.pid" ] && rm "{{ PID_DIR }}/zombienet.pid"
151151

152+
# Clean up zombienet directory to prevent "Directory already exists" prompt
153+
if [ -d "{{ ZOMBIENET_DIR }}" ]; then
154+
echo " Cleaning up existing zombienet directory: {{ ZOMBIENET_DIR }}"
155+
rm -rf "{{ ZOMBIENET_DIR }}"
156+
fi
157+
152158
echo "⚡ Starting Bulletin chain with zombienet (runtime: {{ runtime }})..."
153159

154160
# Find zombienet binary (use env var if set, otherwise search)

0 commit comments

Comments
 (0)