From 707ab359a9d7f14e5d19126ec19e3fe218b8cbcc Mon Sep 17 00:00:00 2001 From: Pete Cornish Date: Sat, 11 Jan 2025 21:21:18 +0000 Subject: [PATCH] build: GitHub Action allows changelog path to be overridden. --- action.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 5f37c69..92e9e7d 100644 --- a/action.yml +++ b/action.yml @@ -1,11 +1,19 @@ name: Extract Changelog entries for most recent version description: Extracts entries from the changelog file for the most recent version and writes them to a file. inputs: + changelog-file: + description: 'Path to the changelog file, relative to the workspace.' + required: false + default: 'CHANGELOG.md' output-file: description: 'The file to write the extracted entries to, relative to the workspace.' required: true runs: using: 'docker' image: 'Dockerfile' - working-directory: /github/workspace - args: [ "changelog", "extract", "--quiet", "--output-file", "/github/workspace/${{ inputs.output-file }}" ] + args: [ + "changelog", "extract", + "--quiet", + "--changelog", "/github/workspace/${{ inputs.changelog-file }}", + "--output-file", "/github/workspace/${{ inputs.output-file }}" + ]