update wf, remove rel on push, add new changelog generation test
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user