mirror of
https://github.com/drewcassidy/yaclog.git
synced 2024-09-01 14:58:58 +00:00
Add ability to specify changelog path
This commit is contained in:
parent
e3fc69d305
commit
5373cb9b48
11
CHANGELOG.md
11
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
|
||||
|
11
action.yaml
11
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"
|
||||
run: >
|
||||
yaclog ${{ inputs.changelog-path && format('--path {0}', inputs.changelog-path) }}
|
||||
show ---gh-actions ${{ inputs.markdown && '--markdown' }}
|
||||
| tee -a "$GITHUB_OUTPUT"
|
Loading…
Reference in New Issue
Block a user