30
30
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
31
31
32
32
- name : Branch check
33
- if : ${{ github.event. inputs.release_type != 'Dry Run' }}
33
+ if : ${{ inputs.release_type != 'Dry Run' }}
34
34
run : |
35
35
if [[ "$GITHUB_REF" != "refs/heads/rc" ]] && [[ "$GITHUB_REF" != "refs/heads/hotfix-rc-cli" ]]; then
36
36
echo "==================================="
43
43
id : version
44
44
uses : bitwarden/gh-actions/release-version-check@main
45
45
with :
46
- release-type : ${{ github.event. inputs.release_type }}
46
+ release-type : ${{ inputs.release_type }}
47
47
project-type : ts
48
48
file : apps/cli/package.json
49
49
monorepo : true
55
55
needs : setup
56
56
steps :
57
57
- name : Download all Release artifacts
58
- if : ${{ github.event. inputs.release_type != 'Dry Run' }}
58
+ if : ${{ inputs.release_type != 'Dry Run' }}
59
59
uses : bitwarden/gh-actions/download-artifacts@main
60
60
with :
61
61
workflow : build-cli.yml
64
64
branch : ${{ github.ref_name }}
65
65
66
66
- name : Dry Run - Download all artifacts
67
- if : ${{ github.event. inputs.release_type == 'Dry Run' }}
67
+ if : ${{ inputs.release_type == 'Dry Run' }}
68
68
uses : bitwarden/gh-actions/download-artifacts@main
69
69
with :
70
70
workflow : build-cli.yml
@@ -73,10 +73,10 @@ jobs:
73
73
branch : main
74
74
75
75
- name : Create release
76
- if : ${{ github.event. inputs.release_type != 'Dry Run' }}
76
+ if : ${{ inputs.release_type != 'Dry Run' }}
77
77
uses : ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5 # v1.14.0
78
78
env :
79
- PKG_VERSION : ${{ steps.version .outputs.version }}
79
+ PKG_VERSION : ${{ needs.setup .outputs.release- version }}
80
80
with :
81
81
artifacts : " apps/cli/bw-oss-windows-${{ env.PKG_VERSION }}.zip,
82
82
apps/cli/bw-oss-windows-sha256-${{ env.PKG_VERSION }}.txt,
0 commit comments