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

Skip to content

Commit dc3afae

Browse files
committed
final test2
1 parent ac42d65 commit dc3afae

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/release.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}
4444
env:
4545
# Use string semantics for negating the boolean, otherwise it will always
4646
# be false. See https://github.com/actions/runner/issues/1483.
47-
CODER_RELEASE: ${{ github.event.inputs.snapshot == 'false' }}
47+
# Note that boolean behavior differs between workflow_dispatch and
48+
# workflow_call.
49+
CODER_RELEASE: ${{ github.event.inputs.snapshot == 'false' || github.event.inputs.snapshot == false }}
4850
CODER_RELEASE_INCREMENT: ${{ github.event.inputs.increment }}
4951
CODER_RELEASE_DRAFT: ${{ github.event.inputs.draft }}
5052
CODER_DRY_RUN: ${{ github.event.inputs.dry_run || github.event.inputs.snapshot }}
@@ -124,8 +126,11 @@ jobs:
124126
125127
- name: Test
126128
run: |
129+
echo ${{ (github.event.inputs.dry_run == 'false' || github.event.inputs.dry_run == false) && (github.event.inputs.snapshot == 'false' || github.event.inputs.snapshot == false) }}
127130
echo ${{ github.event.inputs.dry_run == 'false' && github.event.inputs.snapshot == 'false' }}
128131
echo ${{ github.event.inputs.dry_run == 'false' || github.event.inputs.snapshot == 'false' }}
132+
echo ${{ github.event.inputs.dry_run == 'true' && github.event.inputs.snapshot == 'true' }}
133+
echo ${{ github.event.inputs.dry_run == 'true' || github.event.inputs.snapshot == 'true' }}
129134
echo ${{ github.event.inputs.dry_run && github.event.inputs.snapshot }}
130135
echo ${{ github.event.inputs.dry_run || github.event.inputs.snapshot }}
131136
echo ${{ !github.event.inputs.dry_run || !github.event.inputs.snapshot }}

0 commit comments

Comments
 (0)