chore: Changes changelog system.
Co-authored-by: dess <devessa@users.noreply.github.com>
This commit is contained in:
parent
3e79824015
commit
d1d3a31335
1 changed files with 27 additions and 2 deletions
29
.github/workflows/release.yml
vendored
29
.github/workflows/release.yml
vendored
|
@ -37,8 +37,33 @@ jobs:
|
|||
github_token: ${{secrets.GITHUB_TOKEN}}
|
||||
custom_tag: ${{ steps.get_version.outputs.version }}
|
||||
tag_prefix: ''
|
||||
|
||||
- name: Get previous Git tag
|
||||
id: get_prev_version
|
||||
run: echo "version=$(git describe --abbrev=0 --tags "$(git describe --abbrev=0 --tags)~") >> $GITHUB_OUTPUT"
|
||||
|
||||
- name: Make changelog
|
||||
# FIXME FIXME FIXME: this could probably be sparser, but I wanna be on the safe side
|
||||
- name: Make sparse changelog (1/3)
|
||||
run: mv CHANGELOG.md TEMP_CHANGELOG.md
|
||||
|
||||
- name: Make sparse changelog (2/3)
|
||||
uses: heinrichreimer/github-changelog-generator-action@v2.1.1
|
||||
with:
|
||||
token: '${{secrets.GITHUB_TOKEN}}'
|
||||
issues: true
|
||||
issuesWoLabels: true
|
||||
pullRequests: true
|
||||
prWoLabels: true
|
||||
sinceTag: ${{steps.get_prev_version.outputs.version}}
|
||||
addSections: >-
|
||||
{"documentation":{"prefix":"**Documentation:**","labels":["documentation"]}}
|
||||
|
||||
- name: Make sparse changelog (3/3)
|
||||
run: |
|
||||
mv CHANGELOG.md SPARSE_CHANGELOG.md
|
||||
mv TEMP_CHANGELOG.md CHANGELOG.md
|
||||
|
||||
- name: Make full changelog
|
||||
uses: heinrichreimer/github-changelog-generator-action@v2.1.1
|
||||
with:
|
||||
token: '${{secrets.GITHUB_TOKEN}}'
|
||||
|
@ -59,7 +84,7 @@ jobs:
|
|||
- name: Release on GitHub
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
body_path: CHANGELOG.md
|
||||
body_path: SPARSE_CHANGELOG.md
|
||||
files: |
|
||||
LICENSE
|
||||
docker-compose.yml
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue