From c1daf3c5c02092cb1ceb860288389b3fd251b1ec Mon Sep 17 00:00:00 2001 From: Michael van Tellingen Date: Fri, 19 Jul 2024 10:16:08 +0200 Subject: [PATCH] Add option to specify changie version --- .changes/unreleased/Added-20240719-101602.yaml | 3 +++ action.yaml | 13 +++++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 .changes/unreleased/Added-20240719-101602.yaml diff --git a/.changes/unreleased/Added-20240719-101602.yaml b/.changes/unreleased/Added-20240719-101602.yaml new file mode 100644 index 0000000..83d3307 --- /dev/null +++ b/.changes/unreleased/Added-20240719-101602.yaml @@ -0,0 +1,3 @@ +kind: Added +body: Add option to specify changie version +time: 2024-07-19T10:16:02.237824+02:00 diff --git a/action.yaml b/action.yaml index 51a0bc4..44c9a77 100644 --- a/action.yaml +++ b/action.yaml @@ -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 @@ -57,21 +62,21 @@ 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 @@ -79,7 +84,7 @@ runs: 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