From 55c68b0e5a5afa6b691cdf6ff152decfcc9ddb1e 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:58:50 +0000 Subject: [PATCH] add tag detection --- .github/workflows/release-and-update-changelog.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-and-update-changelog.yml b/.github/workflows/release-and-update-changelog.yml index 18518d2..ef1c65c 100644 --- a/.github/workflows/release-and-update-changelog.yml +++ b/.github/workflows/release-and-update-changelog.yml @@ -18,7 +18,7 @@ on: type: string env: - RELEASE_VERSION: ${{ inputs.deploy_version }} + RELEASE_VERSION: ${{ inputs.release_version }} # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: @@ -51,7 +51,7 @@ jobs: with: version: 7 run_install: false - + - name: Get pnpm store directory id: pnpm-cache shell: bash @@ -77,10 +77,10 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} - name: update the changelog and add a new tag - if: (${{ env.RELEASE_VERSION }} == '') - run: pnpm release:changelog - + if: ${{ env.RELEASE_VERSION == '' }} + run: pnpm release:changelog + - name: update the changelog and add a specific tag - if: (${{ env.RELEASE_VERSION }} != '') + if: ${{ env.RELEASE_VERSION != '' }} run: pnpm release:changelog --release-as ${{ env.RELEASE_VERSION }}