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
|
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
|
## Version 1.4.1 - 2024-08-25
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
11
action.yaml
11
action.yaml
@ -5,6 +5,9 @@ branding:
|
|||||||
color: orange
|
color: orange
|
||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
|
changelog-path:
|
||||||
|
description: "Path of the changelog markdown file"
|
||||||
|
|
||||||
markdown:
|
markdown:
|
||||||
description: If outputs should be in markdown format or not
|
description: If outputs should be in markdown format or not
|
||||||
default: 'true'
|
default: 'true'
|
||||||
@ -44,8 +47,6 @@ runs:
|
|||||||
- name: Setup Yaclog
|
- name: Setup Yaclog
|
||||||
shell: bash
|
shell: bash
|
||||||
run: pipx install --python ${{ steps.setup-python.outputs.python-path }} ${{ github.action_path }}
|
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
|
- name: Create New Release
|
||||||
shell: bash
|
shell: bash
|
||||||
@ -55,5 +56,7 @@ runs:
|
|||||||
- name: Get Changelog Information
|
- name: Get Changelog Information
|
||||||
id: yaclog-show
|
id: yaclog-show
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: >
|
||||||
yaclog show ---gh-actions ${{ inputs.markdown && '--markdown' }} | tee -a "$GITHUB_OUTPUT"
|
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