Skip to content

Commit cf55af1

Browse files
skjnldsvPytal
authored andcommitted
Fix version compare
Signed-off-by: John Molakvoæ <[email protected]>
1 parent 84bbc40 commit cf55af1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/changelog-generate.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,15 @@ jobs:
2121
exclude_types: draft
2222
view_top: 1
2323

24+
# Returns the version without a leading v
2425
- name: Get new version
2526
id: future_version
2627
uses: Saionaro/[email protected]
2728

2829
- name: Generate changelog between ${{ steps.last_version.outputs.tag_name }} and v${{ steps.future_version.outputs.version }}
2930
uses: docker://ferrarimarco/github-changelog-generator
3031
# If we have a version change
31-
if: contains(steps.last_version.outputs.tag_name, steps.future_version.outputs.version) == false
32+
if: steps.last_version.outputs.tag_name != format('{{v{0}}}', steps.future_version.outputs.version)
3233
with:
3334
args: >
3435
-t ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)