From e8efa7c079f705a1fc16b0407d1c6857967027e0 Mon Sep 17 00:00:00 2001 From: Huon Wilson Date: Sun, 28 Apr 2024 09:43:30 +1000 Subject: [PATCH] Invoke pants help-all twice, not thrice (#194) https://github.com/pantsbuild/pants/issues/20315 is now fixed (in https://github.com/pantsbuild/scie-pants/pull/375 / https://github.com/pantsbuild/scie-pants/releases/tag/v0.10.8), so the sync_docs workflow can be slightly slicker. --- .github/workflows/sync_docs.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/sync_docs.yml b/.github/workflows/sync_docs.yml index 75971f05c..757c1e1ab 100644 --- a/.github/workflows/sync_docs.yml +++ b/.github/workflows/sync_docs.yml @@ -28,10 +28,8 @@ jobs: - name: Generate help JSON # First run `help-all` which will contain the list of every backend in the `name_to_backend_help_info` object, # then run it again with every backend enabled. - # NB: We run the command initially twice, since the first run might put extraneous crap on stdout. run: | touch pants.toml - PANTS_VERSION="${{ inputs.version }}" pants help-all > /dev/null PANTS_VERSION="${{ inputs.version }}" pants help-all > help-all.json PANTS_VERSION="${{ inputs.version }}" pants --backend-packages=[$(jq -r '.name_to_backend_help_info | keys_unsorted | map("\"" + . + "\"") | join(",")' help-all.json)] help-all > help-all.json