From 8528decc72f963b73d48a0d33b6422655cdd1db9 Mon Sep 17 00:00:00 2001 From: Jonas Eberle Date: Sun, 28 Nov 2021 13:53:18 +0100 Subject: [PATCH] [BUGFIX] allow multiline comments in TER release note Due to some weird cross-step passing of variables in Github actions, a workaround is required to allow multiline variables. This uses option 1) from here https://trstringer.com/github-actions-multiline-strings/ which has been tested in other projects that are using TYPO3 `tailor` to auto-publish releases in TER. --- .github/workflows/publish-ter.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-ter.yml b/.github/workflows/publish-ter.yml index 1d4c5e4..abd2436 100644 --- a/.github/workflows/publish-ter.yml +++ b/.github/workflows/publish-ter.yml @@ -29,7 +29,10 @@ jobs: - name: Get comment id: get-comment run: | - readonly local comment=$(git tag -n999 -l v${{ steps.get-version.outputs.version }} | sed "s/^v[0-9.]*[ ]*//g") + comment=$(git tag -n999 -l ${{ steps.get-version.outputs.version }} | sed "s/^[0-9.]*[ ]*//g") + comment="${comment//'%'/'%25'}" + comment="${comment//$'\n'/'%0A'}" + comment="${comment//$'\r'/'%0D'}" if [[ -z "${comment// }" ]]; then echo ::set-output name=comment::Released version ${{ steps.get-version.outputs.version }} of ${{ env.TYPO3_EXTENSION_KEY }}