From 5373cb9b48e5fc12ec5a40782667d5b918e5f190 Mon Sep 17 00:00:00 2001 From: Andrew Cassidy Date: Tue, 27 Aug 2024 00:49:40 -0700 Subject: [PATCH] Add ability to specify changelog path --- CHANGELOG.md | 11 +++++++++++ action.yaml | 11 +++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c71abae..5e82d3a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,17 @@ All notable changes to this project will be documented in this file +## Unreleased + +### Fixed + +- Fixed package failing to install without git history + +### Added + +- Added the ability to specify the changelog path in the action + + ## Version 1.4.1 - 2024-08-25 ### Fixed diff --git a/action.yaml b/action.yaml index cb9730a..7606dc0 100644 --- a/action.yaml +++ b/action.yaml @@ -5,6 +5,9 @@ branding: color: orange inputs: + changelog-path: + description: "Path of the changelog markdown file" + markdown: description: If outputs should be in markdown format or not default: 'true' @@ -44,8 +47,6 @@ runs: - name: Setup Yaclog shell: bash run: pipx install --python ${{ steps.setup-python.outputs.python-path }} ${{ github.action_path }} - env: - SETUPTOOLS_SCM_PRETEND_VERSION_FOR_YACLOG: '0.0.0' - name: Create New Release shell: bash @@ -55,5 +56,7 @@ runs: - name: Get Changelog Information id: yaclog-show shell: bash - run: | - yaclog show ---gh-actions ${{ inputs.markdown && '--markdown' }} | tee -a "$GITHUB_OUTPUT" \ No newline at end of file + run: > + yaclog ${{ inputs.changelog-path && format('--path {0}', inputs.changelog-path) }} + show ---gh-actions ${{ inputs.markdown && '--markdown' }} + | tee -a "$GITHUB_OUTPUT" \ No newline at end of file