22
22
type : boolean
23
23
required : true
24
24
default : false
25
- snapshot :
26
- description : Force a dev version to be generated, implies dry_run.
27
- type : boolean
28
- default : false
29
25
ignore_missing_commit_metadata :
30
26
description : WARNING! This option disables the requirement that all commits have a PR. Not needed for dry_run.
31
27
type : boolean
45
41
# Use `inputs` (vs `github.event.inputs`) to ensure that booleans are actual
46
42
# booleans, not strings.
47
43
# https://github.blog/changelog/2022-06-10-github-actions-inputs-unified-across-manual-and-reusable-workflows/
48
- CODER_RELEASE : ${{ !inputs.dry_run && !inputs.snapshot }}
44
+ CODER_RELEASE : ${{ !inputs.dry_run }}
49
45
CODER_RELEASE_INCREMENT : ${{ inputs.increment }}
50
46
CODER_RELEASE_DRAFT : ${{ inputs.draft }}
51
- CODER_DRY_RUN : ${{ inputs.dry_run || inputs.snapshot }}
47
+ CODER_DRY_RUN : ${{ inputs.dry_run }}
52
48
53
49
jobs :
54
50
release :
@@ -269,7 +265,7 @@ jobs:
269
265
uses : " google-github-actions/setup-gcloud@v1"
270
266
271
267
- name : Publish Helm Chart
272
- if : ${{ !inputs.dry_run && !inputs.snapshot }}
268
+ if : ${{ !inputs.dry_run }}
273
269
run : |
274
270
set -euo pipefail
275
271
version="$(./scripts/version.sh)"
@@ -280,8 +276,8 @@ jobs:
280
276
gsutil -h "Cache-Control:no-cache,max-age=0" cp build/helm/coder_helm_${version}.tgz gs://helm.coder.com/v2
281
277
gsutil -h "Cache-Control:no-cache,max-age=0" cp build/helm/index.yaml gs://helm.coder.com/v2
282
278
283
- - name : Upload artifacts to actions (if dry-run or snapshot )
284
- if : ${{ inputs.dry_run || inputs.snapshot }}
279
+ - name : Upload artifacts to actions (if dry-run)
280
+ if : ${{ inputs.dry_run }}
285
281
uses : actions/upload-artifact@v2
286
282
with :
287
283
name : release-artifacts
0 commit comments