Skip to content

Commit

Permalink
Add option to specify changie version
Browse files Browse the repository at this point in the history
  • Loading branch information
mvantellingen committed Jul 19, 2024
1 parent cabe11e commit c1daf3c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .changes/unreleased/Added-20240719-101602.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: Added
body: Add option to specify changie version
time: 2024-07-19T10:16:02.237824+02:00
13 changes: 9 additions & 4 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ inputs:
description: 'The GitHub token'
required: true

changie-version:
description: 'The version of changie to use'
required: false
default: 'latest'

version-command:
description: 'Command to set the version in the package'
required: false
Expand Down Expand Up @@ -57,29 +62,29 @@ runs:
uses: miniscruff/changie-action@v2
id: changelog
with:
version: latest
version: ${{ inputs.changie-version }
args: batch --dry-run auto

- name: Batch changes
if: steps.status.outputs.create_release == 'true'
uses: miniscruff/changie-action@v2
with:
version: latest
version: ${{ inputs.changie-version }}
args: batch auto

- name: Merge changes
if: steps.status.outputs.create_release == 'true'
uses: miniscruff/changie-action@v2
with:
version: latest
version: ${{ inputs.changie-version }}
args: merge

- name: Get the latest version
id: latest
if: steps.status.outputs.create_release == 'true' || steps.status.outputs.is_release == 'true'
uses: miniscruff/changie-action@v2
with:
version: latest
version: ${{ inputs.changie-version }}
args: latest

- name: Set the version in the package
Expand Down

0 comments on commit c1daf3c

Please sign in to comment.