Skip to content

Commit 3dae5a5

Browse files
committed
[TASK] Minor streamlining of publish workflow
This change streamlines the publish GitHub workflow slightly adopting latest changes in other projects. * Only add GitHub release body prepanding based git tag when more than one line. * Only push the github release link as tailor upload comment.
1 parent 0d6c7e7 commit 3dae5a5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ jobs:
3333
id: get-comment
3434
run: |
3535
readonly local releaseCommentPrependBody="$( git tag -l ${{ env.version }} --format '%(contents)' )"
36-
37-
if [[ -n "${releaseCommentPrependBody// }" ]]; then
36+
if (( $(grep -c . <<<"${releaseCommentPrependBody// }") > 1 )); then
3837
{
3938
echo 'releaseCommentPrependBody<<EOF'
4039
echo "$releaseCommentPrependBody"
@@ -43,11 +42,9 @@ jobs:
4342
fi
4443
{
4544
echo 'terReleaseNotes<<EOF'
46-
echo "[RELEASE] ${{ env.version }}"
47-
echo "Notes: https://github.com/fgtclb/academic-persons/releases/tag/${{ env.version }}"
45+
echo "https://github.com/fgtclb/academic-persons/releases/tag/${{ env.version }}"
4846
echo EOF
4947
} >> "$GITHUB_ENV"
50-
echo "DETECTED_EXTENSION_KEY=$(cat composer.json | jq -r '.extra."typo3/cms"."extension-key"' )" >> "$GITHUB_ENV"
5148
5249
- name: Setup PHP 7.4 ( wv_deepltranslate 4.x )
5350
if: github.event.base_ref == 'refs/heads/4'

0 commit comments

Comments
 (0)