Skip to content

Commit 6083a6d

Browse files
committed
chore: avoid potential MAX_ARGS issue with xargs
1 parent e8d64ee commit 6083a6d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release_prep.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ gzip <$ARCHIVE_TMP >$ARCHIVE
4444
SHA=$(shasum -a 256 $ARCHIVE | awk '{print $1}')
4545

4646
# Add generated API docs to the release, see https://github.com/bazelbuild/bazel-central-registry/issues/5593
47-
docs="$(mktemp -d)"
48-
bazel --output_base="$docs" query --output=label 'kind("starlark_doc_extract rule", //...)' \
49-
| xargs bazel --output_base="$docs" build --remote_download_regex='.*doc_extract\.binaryproto'
47+
docs="$(mktemp -d)"; targets="$(mktemp)"
48+
bazel --output_base="$docs" query --output=label --output_file="$targets" 'kind("starlark_doc_extract rule", //...)'
49+
bazel --output_base="$docs" build --target_pattern_file="$targets" --remote_download_regex='.*doc_extract\.binaryproto'
5050
tar --create --auto-compress \
5151
--directory "$(bazel --output_base="$docs" info bazel-bin)" \
5252
--file "$GITHUB_WORKSPACE/${ARCHIVE%.tar.gz}.docs.tar.gz" .

0 commit comments

Comments
 (0)