From 5778e7eb8e063b8364b4a5bf27b1fbaff415bd0e 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:44:18 +0000 Subject: [PATCH] Update release-and-update-changelog.yml --- .github/workflows/release-and-update-changelog.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-and-update-changelog.yml b/.github/workflows/release-and-update-changelog.yml index e73fda8..5709c16 100644 --- a/.github/workflows/release-and-update-changelog.yml +++ b/.github/workflows/release-and-update-changelog.yml @@ -17,6 +17,9 @@ on: required: false type: string +env: + RELEASE_VERSION: ${{ inputs.deploy_version }} + # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: # This workflow contains a single job called "build" @@ -74,10 +77,10 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} - name: update the changelog and add a new tag - if: ${{ inputs.deploy_version }} == '' + if: (${{ env.RELEASE_VERSION }} == '') run: pnpm release:changelog - name: update the changelog and add a specific tag - if: ${{ inputs.deploy_version }} != '' + if: (${{ env.RELEASE_VERSION }} != '') run: pnpm release:changelog --release-as ${{ inputs.deploy_version }}