Skip to content

Commit

Permalink
Invoke pants help-all twice, not thrice (#194)
Browse files Browse the repository at this point in the history
pantsbuild/pants#20315 is now fixed (in
pantsbuild/scie-pants#375 /
https://github.com/pantsbuild/scie-pants/releases/tag/v0.10.8), so the
sync_docs workflow can be slightly slicker.
  • Loading branch information
huonw authored Apr 27, 2024
1 parent d25486c commit e8efa7c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/sync_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e8efa7c

Please sign in to comment.