From 2b796e5fec5d3ec2efc2fbe163c5c2f49012afe2 Mon Sep 17 00:00:00 2001 From: Chris O'Neil Date: Tue, 16 Apr 2024 20:00:10 +0100 Subject: [PATCH] ci: suppress release-plz instrumentation output This output makes it difficult to find things in the logs for the release workflow runs. --- .github/workflows/release.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 78ede9631f..c593365580 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -168,8 +168,12 @@ jobs: # The `release-plz` command publishes crates which had their versions bumped, and also # creates Github releases. The binaries are then attached to the releases in the # `upload-github-release-assets` target. - cargo login ${{ secrets.CRATES_IO_TOKEN }} - release-plz release --git-token ${{ secrets.VERSION_BUMP_COMMIT_PAT }} + cargo login "${{ secrets.CRATES_IO_TOKEN }}" + # The use of 'awk' suppresses the annoying instrumentation output + # that makes the log difficult to read. + release-plz release --git-token ${{ secrets.VERSION_BUMP_COMMIT_PAT }} | \ + awk '{ if (!/^\s*in release with input/ && !/^\s{4}/) print }' + just upload-github-release-assets # Now upload the 'latest' versions to S3. This can be done later because the node manager