diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1d9005e..7665e0c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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