From de40ab64a610eee0f5f757dc74e5ed55c5a9e12c Mon Sep 17 00:00:00 2001 From: Michael Matloka Date: Fri, 26 Feb 2021 02:08:43 +0100 Subject: [PATCH] Delete non-PR changelog lines on git log instead of sed level --- .github/workflows/cd.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index 545655afd..748d4c9a8 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -154,7 +154,7 @@ jobs: id: changelog run: | cd plugin-server - PULL_REQUESTS=$(git log v${{ steps.yarn-upgrade.outputs.outgoing-version }}..v${{ env.REPO_VERSION }} --pretty=format:%s --reverse | sed -e '/^.*\d*)$/!d' -e 's;(#;(PostHog/plugin-server#;' -e 's/^/- /') + PULL_REQUESTS=$(git log v${{ steps.yarn-upgrade.outputs.outgoing-version }}..v${{ env.REPO_VERSION }} --pretty=format:%s --grep='^.*\d*)$' --reverse | sed -e 's;(#;(PostHog/plugin-server#;' -e 's/^/- /' # Escape characters that are problematic for GitHub Actions set-output PULL_REQUESTS="${PULL_REQUESTS//'%'/'%25'}" PULL_REQUESTS="${PULL_REQUESTS//$'\n'/'%0A'}"