File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 tags :
66 - " v*"
77 workflow_dispatch :
8+ inputs :
9+ tag :
10+ description : " Tag to generate changelog for (e.g. v0.4.0)"
11+ required : false
12+ type : string
813
914permissions :
1015 contents : write
2328 uses : orhun/git-cliff-action@v4
2429 with :
2530 config : cliff.toml
26- args : --output CHANGELOG.md --tag "${{ github.ref_name }}"
31+ args : --output CHANGELOG.md --tag "${{ github.event.inputs.tag || github. ref_name }}"
2732 env :
2833 GITHUB_REPO : ${{ github.repository }}
2934
3237 git config user.name "github-actions[bot]"
3338 git config user.email "github-actions[bot]@users.noreply.github.com"
3439 git add CHANGELOG.md
35- git diff --cached --quiet || git commit -m "docs: update CHANGELOG.md for ${{ github.ref_name }}"
40+ git diff --cached --quiet || git commit -m "docs: update CHANGELOG.md for ${{ github.event.inputs.tag || github. ref_name }}"
3641 git push
3742 shell : bash
You can’t perform that action at this time.
0 commit comments