Skip to content

Commit 6be8d96

Browse files
committed
Fix reference to variable (#10670)
(cherry picked from commit 64005d2)
1 parent 4bcbdb6 commit 6be8d96

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/release-cli.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
3131

3232
- name: Branch check
33-
if: ${{ github.event.inputs.release_type != 'Dry Run' }}
33+
if: ${{ inputs.release_type != 'Dry Run' }}
3434
run: |
3535
if [[ "$GITHUB_REF" != "refs/heads/rc" ]] && [[ "$GITHUB_REF" != "refs/heads/hotfix-rc-cli" ]]; then
3636
echo "==================================="
@@ -43,7 +43,7 @@ jobs:
4343
id: version
4444
uses: bitwarden/gh-actions/release-version-check@main
4545
with:
46-
release-type: ${{ github.event.inputs.release_type }}
46+
release-type: ${{ inputs.release_type }}
4747
project-type: ts
4848
file: apps/cli/package.json
4949
monorepo: true
@@ -55,7 +55,7 @@ jobs:
5555
needs: setup
5656
steps:
5757
- name: Download all Release artifacts
58-
if: ${{ github.event.inputs.release_type != 'Dry Run' }}
58+
if: ${{ inputs.release_type != 'Dry Run' }}
5959
uses: bitwarden/gh-actions/download-artifacts@main
6060
with:
6161
workflow: build-cli.yml
@@ -64,7 +64,7 @@ jobs:
6464
branch: ${{ github.ref_name }}
6565

6666
- name: Dry Run - Download all artifacts
67-
if: ${{ github.event.inputs.release_type == 'Dry Run' }}
67+
if: ${{ inputs.release_type == 'Dry Run' }}
6868
uses: bitwarden/gh-actions/download-artifacts@main
6969
with:
7070
workflow: build-cli.yml
@@ -73,10 +73,10 @@ jobs:
7373
branch: main
7474

7575
- name: Create release
76-
if: ${{ github.event.inputs.release_type != 'Dry Run' }}
76+
if: ${{ inputs.release_type != 'Dry Run' }}
7777
uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5 # v1.14.0
7878
env:
79-
PKG_VERSION: ${{ steps.version.outputs.version }}
79+
PKG_VERSION: ${{ needs.setup.outputs.release-version }}
8080
with:
8181
artifacts: "apps/cli/bw-oss-windows-${{ env.PKG_VERSION }}.zip,
8282
apps/cli/bw-oss-windows-sha256-${{ env.PKG_VERSION }}.txt,

0 commit comments

Comments
 (0)