Skip to content

Commit 4c0cccc

Browse files
committed
Don't run changelog generator if version did not change
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
1 parent c94bfef commit 4c0cccc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/changelog-generate.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Changelog
22

33
on:
4-
push:
4+
pull_request:
55
paths:
66
- 'package.json'
77

@@ -25,8 +25,10 @@ jobs:
2525
id: future_version
2626
uses: Saionaro/extract-package-version@v1.0.6
2727

28-
- name: Generate changelog
28+
- name: Generate changelog between ${{ steps.last_version.outputs.tag_name }} and v${{ steps.future_version.outputs.version }}
2929
uses: docker://ferrarimarco/github-changelog-generator
30+
# If we have a version change
31+
if: contains(steps.last_version.outputs.tag_name, steps.future_version.outputs.version) == false
3032
with:
3133
args: >
3234
-t ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)