Skip to content

Commit

Permalink
add tag detection
Browse files Browse the repository at this point in the history
  • Loading branch information
kazami139 committed Mar 5, 2023
1 parent 5696029 commit 55c68b0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release-and-update-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
with:
version: 7
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
shell: bash
Expand All @@ -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 }}

0 comments on commit 55c68b0

Please sign in to comment.