diff --git a/.gitea/workflows/actions.yaml b/.gitea/workflows/actions.yaml index 75528ba..8b9454e 100644 --- a/.gitea/workflows/actions.yaml +++ b/.gitea/workflows/actions.yaml @@ -37,7 +37,11 @@ jobs: tar -xvzf crxmake_v0.2.0_linux_amd64.tar.gz crxmake_v0.2.0_linux_amd64/crxmake ./crxmake_v0.2.0_linux_amd64/crxmake src/ go2ticket-chrome.crx ls -l go2ticket-* - + - name: Generate release notes + id: release_notes + run: | + NOTES=$(git log -1 --pretty=%B) + echo "release_notes=${NOTES}" >> $GITHUB_ENV - name: Deploy release if: startsWith(gitea.ref, 'refs/tags/') @@ -48,8 +52,8 @@ jobs: -d '{ "tag_name": "${{ gitea.ref }}", "target_commitish": "${{ gitea.sha }}", - "name": "${{ gitea.ref }}", - "body": "Release description", + "name": "$(git for-each-ref --format='%(contents)' refs/tags/v1.0.0 | grep .)", + "body": "Release description :\n ${{ env.release_notes }}", "draft": true, "prerelease": false }' \