update wf, remove rel on push, add new changelog generation test

This commit is contained in:
2025-05-26 17:29:09 +02:00
parent cc5dc6141c
commit 7631ed6e7c

View File

@@ -1,12 +1,4 @@
on: on:
push:
# only if commit message starts with "release"
branches:
- main
# and commit message contains "release"
workflow_dispatch: workflow_dispatch:
inputs: inputs:
release_notes: release_notes:
@@ -66,7 +58,13 @@ jobs:
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }} 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 - name: Add release notes to environment
id: add_release_notes id: add_release_notes
run: | run: |
@@ -88,7 +86,7 @@ jobs:
with: with:
tag_name: ${{ env.VERSION }} tag_name: ${{ env.VERSION }}
release_name: Release ${{ env.VERSION }} release_name: Release ${{ env.VERSION }}
body: ${{ steps.create-release-notes.outputs.release-notes }} body: ${{steps.build_changelog.outputs.changelog}}
draft: false draft: false
prerelease: false prerelease: false
make_latest: true make_latest: true