File tree 1 file changed +14
-1
lines changed
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 22
22
if : startsWith(github.ref, 'refs/tags/')
23
23
steps :
24
24
- uses : actions/checkout@v4
25
+ with :
26
+ fetch-depth : 0
27
+ - name : Capture latest tag if exists
28
+ uses : actions-ecosystem/action-get-latest-tag@v1
29
+ id : get-latest-tag
30
+ with :
31
+ semver_only : true
32
+ with_initial_version : true
33
+ initial_version : v0.0.0
34
+ - id : previous
35
+ run : |
36
+ echo tag="$(git tag -l 'v*' | grep -v '${{ steps.get-latest-tag.outputs.tag }}' | tail -n 1)" >> "$GITHUB_OUTPUT"
25
37
- id : semver_parser
26
38
uses : release-kit/semver@v2
27
39
with :
30
42
uses : requarks/changelog-action@v1
31
43
with :
32
44
token : ${{ github.token }}
33
- tag : ${{ github.ref_name }}
45
+ toTag : ${{ steps.previous.outputs.tag }}
46
+ fromTag : ${{ github.ref_name }}
34
47
excludeTypes : " "
35
48
excludeScopes : " "
36
49
-
uses :
ncipollo/[email protected]
You can’t perform that action at this time.
0 commit comments