Add ability to specify changelog path

This commit is contained in:
Andrew Cassidy 2024-08-27 00:49:40 -07:00
parent e3fc69d305
commit 5373cb9b48
2 changed files with 18 additions and 4 deletions

View File

@ -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

View File

@ -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"
run: >
yaclog ${{ inputs.changelog-path && format('--path {0}', inputs.changelog-path) }}
show ---gh-actions ${{ inputs.markdown && '--markdown' }}
| tee -a "$GITHUB_OUTPUT"