update changelog gen with branch
This commit is contained in:
parent
84f54a5ddc
commit
26fbb51d71
1 changed files with 7 additions and 1 deletions
|
@ -2,6 +2,12 @@ name: generate and update changelog
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
branch:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
description: "branch to checkout"
|
||||||
|
default: master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update-changelog:
|
update-changelog:
|
||||||
|
@ -11,7 +17,7 @@ jobs:
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ref: master
|
ref: ${{ inputs.branch }}
|
||||||
|
|
||||||
- name: install auto-changelog
|
- name: install auto-changelog
|
||||||
run: npm install -g auto-changelog
|
run: npm install -g auto-changelog
|
||||||
|
|
Reference in a new issue