Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f5e8d59

Browse files
committed
Remove snapshot
1 parent dc91244 commit f5e8d59

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

.github/workflows/release.yaml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ on:
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
@@ -45,10 +41,10 @@ env:
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

5349
jobs:
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

scripts/release.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ log
171171
maybedryrun 0 gh workflow run release.yaml \
172172
--ref "$branch" \
173173
-F increment="$increment" \
174-
-F snapshot=false \
175174
"${args[@]}"
176175
log
177176

0 commit comments

Comments
 (0)