From b07be60fd297ca803462d737a870a9a776c952cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?George=20Kazami=20=5B=E4=B9=94=E6=B2=BB=C2=B7=E9=A2=A8?= =?UTF-8?q?=E8=A6=8B=5D?= Date: Sun, 5 Mar 2023 01:24:26 +0000 Subject: [PATCH] chore: add specific version for release CI --- .github/workflows/release-and-update-changelog.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/release-and-update-changelog.yml b/.github/workflows/release-and-update-changelog.yml index 7db649a..f76bd0d 100644 --- a/.github/workflows/release-and-update-changelog.yml +++ b/.github/workflows/release-and-update-changelog.yml @@ -12,6 +12,10 @@ on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: + inputs: + release_version: + required: false + type: string # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: @@ -56,4 +60,10 @@ jobs: run: pnpm install - name: update the changelog and add a new tag + if: (${{ inputs.deploy_version }} == "") run: pnpm release:changelog + + - name: update the changelog and add a specific tag + if: (${{ inputs.deploy_version }} != "") + run: pnpm release:changelog --release-as ${{ inputs.deploy_version }} +