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

Skip to content

Commit 88a30af

Browse files
committed
final test2
1 parent ac42d65 commit 88a30af

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/release.yaml

Lines changed: 7 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,12 @@ 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) }}
130+
echo ${{ (github.event.inputs.dry_run == 'true' || github.event.inputs.dry_run == true) && (github.event.inputs.snapshot == 'true' || github.event.inputs.snapshot == true) }}
127131
echo ${{ github.event.inputs.dry_run == 'false' && github.event.inputs.snapshot == 'false' }}
128132
echo ${{ github.event.inputs.dry_run == 'false' || github.event.inputs.snapshot == 'false' }}
133+
echo ${{ github.event.inputs.dry_run == 'true' && github.event.inputs.snapshot == 'true' }}
134+
echo ${{ github.event.inputs.dry_run == 'true' || github.event.inputs.snapshot == 'true' }}
129135
echo ${{ github.event.inputs.dry_run && github.event.inputs.snapshot }}
130136
echo ${{ github.event.inputs.dry_run || github.event.inputs.snapshot }}
131137
echo ${{ !github.event.inputs.dry_run || !github.event.inputs.snapshot }}

0 commit comments

Comments
 (0)