Skip to content

Commit

Permalink
Added auto changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Karmenzind committed Dec 19, 2023
1 parent 4b6d095 commit 3931c9f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release-tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,22 @@ jobs:
# - name: version
# run: echo "::set-output name=version::$(go run cmd/kd.go --version | awk '{print $3}')"
# id: version
- name: "Build Changelog"
id: build_changelog
uses: mikepenz/release-changelog-builder-action@{latest-release}
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Generate Changelog
run: echo "由changelog生成" > ${{ github.workspace }}-CHANGELOG.txt
# - name: Generate Changelog
# run: echo "由changelog生成" > ${{ github.workspace }}-CHANGELOG.txt

- name: Release
uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
with:
name: test-${{ steps.version.outputs.version }}
body_path: ${{ github.workspace }}-CHANGELOG.txt
# body_path: ${{ github.workspace }}-CHANGELOG.txt
body: ${{steps.build_changelog.outputs.changelog}}
fail_on_unmatched_files: true
tag_name: v0.0.1
prerelease: true
Expand Down

0 comments on commit 3931c9f

Please sign in to comment.