Skip to content
This repository has been archived by the owner on Nov 4, 2021. It is now read-only.

Commit

Permalink
Delete non-PR changelog lines on git log instead of sed level
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes committed Feb 26, 2021
1 parent 8c2ebc0 commit de40ab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'}"
Expand Down

0 comments on commit de40ab6

Please sign in to comment.