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

Skip to content

Commit bb6bc21

Browse files
committed
ci: Move envs back to top scope
1 parent 0999301 commit bb6bc21

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/release.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,19 @@ permissions:
4141

4242
concurrency: ${{ github.workflow }}-${{ github.ref }}
4343

44+
env:
45+
# Use string semantics for negating the boolean, otherwise it will always
46+
# be false. See https://github.com/actions/runner/issues/1483.
47+
CODER_RELEASE: ${{ github.event.inputs.snapshot == 'false' }}
48+
CODER_RELEASE_INCREMENT: ${{ github.event.inputs.increment }}
49+
CODER_RELEASE_DRAFT: ${{ github.event.inputs.draft }}
50+
CODER_DRY_RUN: ${{ github.event.inputs.dry_run || github.event.inputs.snapshot }}
51+
4452
jobs:
4553
release:
4654
name: Create and publish
4755
runs-on: ${{ github.repository_owner == 'coder' && 'ubuntu-latest-16-cores' || 'ubuntu-latest' }}
4856
env:
49-
CODER_RELEASE: ${{ github.event.inputs.snapshot == 'false' }}
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 }}
5357
# Necessary for Docker manifest
5458
DOCKER_CLI_EXPERIMENTAL: "enabled"
5559
steps:

0 commit comments

Comments
 (0)