Skip to content

Commit

Permalink
Update release-and-update-changelog.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kazami139 authored and GitHub Enterprise committed Mar 5, 2023
1 parent 29fc181 commit 5778e7e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release-and-update-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 }}

0 comments on commit 5778e7e

Please sign in to comment.