Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Use xargs to trim first_line/co_authors (#6078)

Adam Rutkowski46752f11fc4c
diff --git a/.github/workflows/build-private-images-ghcr.yml b/.github/workflows/build-private-images-ghcr.yml
index fac0723f56..e2bc5f8bbf 100644
--- a/.github/workflows/build-private-images-ghcr.yml
+++ b/.github/workflows/build-private-images-ghcr.yml
@@ -73,8 +73,8 @@ jobs:
if: ${{ success() && github.ref == 'refs/heads/master' }}
id: commitmsg
run: |
- first_line=$(echo "${{ github.event.head_commit.message }}" | head -n1)
- co_authors=$(echo "${{ github.event.head_commit.message }}" | grep -h 'Co-authored-by:' | sort -u | cut -d: -f2- | paste -sd, -)
+ first_line=$(echo "${{ github.event.head_commit.message }}" | head -n1 | xargs)
+ co_authors=$(echo "${{ github.event.head_commit.message }}" | grep -h 'Co-authored-by:' | sort -u | cut -d: -f2- | paste -sd, - | xargs)
{
echo "first_line=$first_line"
echo "co_authors=$co_authors"