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 }}