File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4848 tag : ${{ needs.release_commit_check.outputs.new_version }}
4949 commit_sha : ${{ github.sha }}
5050 github_token : ${{ secrets.GITHUB_TOKEN }}
51-
52- draft_changelog :
53- runs-on : ubuntu-latest
54- needs : [add_version, release_commit_check]
55- outputs :
56- release_body : ${{ steps.git_cliff.outputs.content }}
57- steps :
58- - name : Checkout Repository at Tagged Commit
59- uses : actions/checkout@v4
60- with :
61- fetch-depth : 0
62- ref : ${{ needs.release_commit_check.outputs.new_version }}
63- - name : Generate Changelog
64- id : git_cliff
65- uses : orhun/git-cliff-action@v4
66- with :
67- args : --latest --verbose
68- env :
69- GITHUB_REPO : ${{ github.repository }}
70-
71- create_github_release :
72- runs-on : ubuntu-latest
73- permissions :
74- contents : write
75- pull-requests : read
76- needs : [release_commit_check, draft_changelog]
77- steps :
78- - name : Create Release
79- uses : softprops/action-gh-release@v2
80- env :
81- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
82- with :
83- name : ${{ needs.release_commit_check.outputs.new_version }}
84- body : |
85- ${{ needs.draft_changelog.outputs.release_body }}
86- draft : false
87- prerelease : false
You can’t perform that action at this time.
0 commit comments