Skip to content

Commit

Permalink
Don't run changelog generator if version did not change
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
  • Loading branch information
skjnldsv committed Aug 18, 2022
1 parent 6561400 commit aeae87e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/changelog-generate.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Changelog

on:
push:
pull_request:
paths:
- 'package.json'

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

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

0 comments on commit aeae87e

Please sign in to comment.