@@ -39,16 +39,17 @@ permissions:
39
39
# Necessary for GCP authentication (https://github.com/google-github-actions/setup-gcloud#usage)
40
40
id-token : write
41
41
42
- env :
43
- CODER_RELEASE : ${{ !github.event.inputs.snapshot }}
44
-
45
42
concurrency : ${{ github.workflow }}-${{ github.ref }}
46
43
47
44
jobs :
48
45
release :
49
46
name : Create and publish
50
47
runs-on : ${{ github.repository_owner == 'coder' && 'ubuntu-latest-16-cores' || 'ubuntu-latest' }}
51
48
env :
49
+ CODER_RELEASE : ${{ !github.event.inputs.snapshot }}
50
+ CODER_RELEASE_INCREMENT : ${{ github.event.inputs.increment }}
51
+ CODER_RELEASE_DRAFT : ${{ github.event.inputs.draft }}
52
+ CODER_DRY_RUN : ${{ github.event.inputs.dry_run || github.event.inputs.snapshot }}
52
53
# Necessary for Docker manifest
53
54
DOCKER_CLI_EXPERIMENTAL : " enabled"
54
55
steps :
87
88
fi
88
89
89
90
version_args=()
90
- if [[ "${{ github.event.inputs.dry_run || github.event.inputs.snapshot }}" == *t* ]]; then
91
+ if [[ $CODER_DRY_RUN == *t* ]]; then
91
92
# Allow dry-run of branches to pass.
92
93
export CODER_IGNORE_MISSING_COMMIT_METADATA=1
93
94
version_args+=(--dry-run)
@@ -104,7 +105,7 @@ jobs:
104
105
./scripts/release/tag_version.sh \
105
106
"${version_args[@]}" \
106
107
--ref "$ref" \
107
- --${{ github.event.inputs.increment }}
108
+ --"$CODER_RELEASE_INCREMENT"
108
109
)"
109
110
110
111
# Generate notes.
@@ -232,10 +233,10 @@ jobs:
232
233
set -euo pipefail
233
234
234
235
publish_args=()
235
- if [[ "${{ github.event.inputs.draft }}" == *t* ]]; then
236
+ if [[ $CODER_RELEASE_DRAFT == *t* ]]; then
236
237
publish_args+=(--draft)
237
238
fi
238
- if [[ "${{ github.event.inputs.dry_run || github.event.inputs.snapshot }}" == *t* ]]; then
239
+ if [[ $CODER_DRY_RUN == *t* ]]; then
239
240
publish_args+=(--dry-run)
240
241
fi
241
242
declare -p publish_args
0 commit comments