2222 type : boolean
2323 required : true
2424 default : false
25- snapshot :
26- description : Force a dev version to be generated, implies dry_run.
27- type : boolean
28- default : false
2925 ignore_missing_commit_metadata :
3026 description : WARNING! This option disables the requirement that all commits have a PR. Not needed for dry_run.
3127 type : boolean
4541 # Use `inputs` (vs `github.event.inputs`) to ensure that booleans are actual
4642 # booleans, not strings.
4743 # 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 }}
4945 CODER_RELEASE_INCREMENT : ${{ inputs.increment }}
5046 CODER_RELEASE_DRAFT : ${{ inputs.draft }}
51- CODER_DRY_RUN : ${{ inputs.dry_run || inputs.snapshot }}
47+ CODER_DRY_RUN : ${{ inputs.dry_run }}
5248
5349jobs :
5450 release :
@@ -269,7 +265,7 @@ jobs:
269265 uses : " google-github-actions/setup-gcloud@v1"
270266
271267 - name : Publish Helm Chart
272- if : ${{ !inputs.dry_run && !inputs.snapshot }}
268+ if : ${{ !inputs.dry_run }}
273269 run : |
274270 set -euo pipefail
275271 version="$(./scripts/version.sh)"
@@ -280,8 +276,8 @@ jobs:
280276 gsutil -h "Cache-Control:no-cache,max-age=0" cp build/helm/coder_helm_${version}.tgz gs://helm.coder.com/v2
281277 gsutil -h "Cache-Control:no-cache,max-age=0" cp build/helm/index.yaml gs://helm.coder.com/v2
282278
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 }}
285281 uses : actions/upload-artifact@v2
286282 with :
287283 name : release-artifacts
0 commit comments