ci(generate-changelogs): add control on whether to write to issue page (#170)

* ci(generate-changelogs): control whether to write to issue page

* fix: fix syntax
This commit is contained in:
Kevin Yu 2023-07-02 20:20:40 +08:00 committed by GitHub
parent dc45339065
commit a58e0b7507
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,6 +10,10 @@ on:
future_release_tag:
required: true
description: future release tag
write_to_issue:
required: true
description: export changelogs to an issue page
default: true
jobs:
build:
@ -35,6 +39,7 @@ jobs:
echo "${{ steps.changelog.outputs.changelogs }}"
- name: Create an issue with proposed changelogs
if: ${{ inputs.write_to_issue == 'true' }}
uses: dacbd/create-issue-action@main
with:
token: ${{ secrets.GH_TOKEN }}