From a58e0b7507af0201200e583c99ec5a8325ecbd32 Mon Sep 17 00:00:00 2001 From: Kevin Yu <31861128+yqlbu@users.noreply.github.com> Date: Sun, 2 Jul 2023 20:20:40 +0800 Subject: [PATCH] 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 --- .github/workflows/generate-changelogs.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/generate-changelogs.yml b/.github/workflows/generate-changelogs.yml index 4376549..e1e29a6 100644 --- a/.github/workflows/generate-changelogs.yml +++ b/.github/workflows/generate-changelogs.yml @@ -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 }}