File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -211,14 +211,11 @@ jobs:
211
211
env :
212
212
OUTPUT_PATH : ${{ inputs.repository }}-combined.doccarchive
213
213
run : |
214
- if [ "$(find artifacts -type d -name '*.doccarchive' -print | wc -l)" -gt 1 ]; then
215
- # We could use `xargs -J` in POSIX - but GNU xargs doesn't have -J.. .
216
- find artifacts -type d -name '*.doccarchive' -print0 \
214
+ # We could use `xargs -J` in POSIX - but GNU xargs doesn't have -J...
215
+ # The exec mkdir is currently needed when merging a single archive. Otherwise `docc merge` fails .
216
+ find artifacts -type d -name '*.doccarchive' -exec mkdir -p '{}/data/tutorials' '{}/data/documentation' \; -print0 \
217
217
| xargs --null --no-run-if-empty \
218
218
sh -c "'$(which docc || xcrun --find docc)' merge \"\$@\" --output-path '${OUTPUT_PATH}'" sh
219
- else
220
- find artifacts -type d -name '*.doccarchive' -exec cp -R '{}' "$(realpath "${OUTPUT_PATH}")" \;
221
- fi
222
219
- name : Package combined docs
223
220
env :
224
221
REPO_NAME : ${{ inputs.repository }}
You can’t perform that action at this time.
0 commit comments