Skip to content

Commit

Permalink
[BUGFIX] allow multiline comments in TER release note
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jonaseberle authored Nov 28, 2021
1 parent a8d3260 commit 8528dec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/publish-ter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 8528dec

Please sign in to comment.