Skip to content

Commit d05c750

Browse files
committed
DOC: Fix post-cleanup step in Conda setup to prevent JSON parsing issues
1 parent ef776da commit d05c750

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/actions/setup-conda/action.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@ runs:
1616
condarc-file: ci/.condarc
1717
cache-environment: true
1818
cache-downloads: true
19-
# keep post step simple to avoid JSON parsing problems
20-
post-cleanup: environment
19+
# FIX: Set this to 'none'.
20+
# 'environment' mode tries to parse JSON to delete packages, which causes the crash.
21+
# GitHub runners are destroyed after the job, so cleanup is not required.
22+
post-cleanup: 'none'
2123

2224
- name: Uninstall pyarrow (optional)
2325
if: ${{ env.REMOVE_PYARROW == '1' }}
2426
shell: bash -el {0}
2527
run: |
26-
micromamba remove -y -n test pyarrow
28+
micromamba remove -y -n test pyarrow

0 commit comments

Comments
 (0)