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

Skip to content

Commit 1e63d4c

Browse files
committed
one more test2
1 parent 8c3297d commit 1e63d4c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ env:
5252
# Also note that inputs (vs github.event.inputs) are usable across both
5353
# workflow_dispatch and workflow_call.
5454
# https://github.blog/changelog/2022-06-10-github-actions-inputs-unified-across-manual-and-reusable-workflows/
55-
CODER_RELEASE: ${{ contains(inputs.snapshot, 'false') }}
55+
CODER_RELEASE: ${{ !inputs.snapshot }}
5656
CODER_RELEASE_INCREMENT: ${{ inputs.increment }}
5757
CODER_RELEASE_DRAFT: ${{ inputs.draft }}
58-
CODER_DRY_RUN: ${{ contains(inputs.dry_run, 'true') || contains(inputs.snapshot, 'true') }}
58+
CODER_DRY_RUN: ${{ inputs.dry_run || inputs.snapshot }}
5959

6060
jobs:
6161
release:
@@ -80,6 +80,8 @@ jobs:
8080
- name: Test
8181
run: |
8282
echo ${{ inputs.dry_run && '--dry-run' || 'no dry' }}
83+
echo ${{ inputs.dry_run && '--dry-run' || '' }}
84+
echo ${{ inputs.dry_run && '--dry-run' }}
8385
echo ${{ !inputs.dry_run && 'no dry' || '--dry-run'}}
8486
echo ${{ (!inputs.dry_run && !inputs.snapshot) && 'release' || 'no release'}}
8587
echo ${{ (inputs.dry_run || inputs.snapshot) && 'no release' || 'release'}}

0 commit comments

Comments
 (0)