diff --git a/.github/workflows/release-and-update-changelog.yml b/.github/workflows/release-and-update-changelog.yml index 7db649a..f76bd0d 100644 --- a/.github/workflows/release-and-update-changelog.yml +++ b/.github/workflows/release-and-update-changelog.yml @@ -12,6 +12,10 @@ on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: + inputs: + release_version: + required: false + type: string # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: @@ -56,4 +60,10 @@ jobs: run: pnpm install - name: update the changelog and add a new tag + if: (${{ inputs.deploy_version }} == "") run: pnpm release:changelog + + - name: update the changelog and add a specific tag + if: (${{ inputs.deploy_version }} != "") + run: pnpm release:changelog --release-as ${{ inputs.deploy_version }} +