diff --git a/.gitea/workflows/relase.yml b/.gitea/workflows/relase.yml index 7f2ac7f..2b02792 100644 --- a/.gitea/workflows/relase.yml +++ b/.gitea/workflows/relase.yml @@ -1,12 +1,4 @@ on: - push: - # only if commit message starts with "release" - branches: - - main - # and commit message contains "release" - - - workflow_dispatch: inputs: release_notes: @@ -66,7 +58,13 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} branch: ${{ github.ref }} - + + - name: "Build Changelog" + id: build_changelog + uses: mikepenz/release-changelog-builder-action@v5.0.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Add release notes to environment id: add_release_notes run: | @@ -88,7 +86,7 @@ jobs: with: tag_name: ${{ env.VERSION }} release_name: Release ${{ env.VERSION }} - body: ${{ steps.create-release-notes.outputs.release-notes }} + body: ${{steps.build_changelog.outputs.changelog}} draft: false prerelease: false make_latest: true