Skip to content

Use the github release body for TER releases#219

Open
fseipel wants to merge 3 commits intomasterfrom
release_body
Open

Use the github release body for TER releases#219
fseipel wants to merge 3 commits intomasterfrom
release_body

Conversation

@fseipel
Copy link
Copy Markdown
Member

@fseipel fseipel commented Mar 25, 2026

No description provided.

Copy link
Copy Markdown
Member

@mbrodala mbrodala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you temporarily adjust on so that this runs in the context of this MR? Of course, no actual upload should happen so maybe use echo composer ... in the scripts.

Comment on lines +64 to +66
- name: Get version
id: get-version
run: echo "version=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
run: echo "version=${{ github.event.release.tag_name }}" >> $GITHUB_ENV
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This step can be dropped, we can directly pass github.event.release.tag_name as TAG in the next step.

"echo \"require 'phar://' . \\TYPO3\\CMS\\Core\\Utility\\ExtensionManagementUtility::extPath('$(composer config extra.typo3/cms.extension-key)') . 'vendors.phar/vendor/autoload.php';\" >> ext_localconf.php",
"composer global exec -v -- tailor set-version $TAG",
"composer global exec -v -- tailor ter:publish --comment \"$(git tag -l --format='%(contents)' $TAG)\" $TAG"
"composer global exec -v -- tailor ter:publish --comment \"${UPLOAD_MESSAGE}\" $TAG"
Copy link
Copy Markdown
Member

@mbrodala mbrodala Mar 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need to further take care of quoting here? This is a possibly large multi-line string after all.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking the same. But I have no idea if it is necessary or not.

@fseipel
Copy link
Copy Markdown
Member Author

fseipel commented Mar 25, 2026

The problem is that the release variable only exists in a release context. Making testing difficult

@mbrodala
Copy link
Copy Markdown
Member

Just saw this which would be a much simpler solution and improve the current state:

https://github.com/eliashaeussler/typo3-sitemap-locator/actions/runs/23798620246/job/69352738687#step:6:3

So basically something like this:

tailor ter:publish --comment "See release notes at https://github.com/pagemachine/searchable/releases/tag/6.3.1"
@mbrodala
Copy link
Copy Markdown
Member

Just did that, let me know if this works for you: #222

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants