46
46
# be false. See https://github.com/actions/runner/issues/1483.
47
47
# Note that boolean behavior differs between workflow_dispatch and
48
48
# workflow_call.
49
- CODER_RELEASE : ${{ github.event.inputs.snapshot == 'false' || github.event.inputs.snapshot == false }}
49
+ CODER_RELEASE : ${{ contains( github.event.inputs.snapshot, 'false') }}
50
50
CODER_RELEASE_INCREMENT : ${{ github.event.inputs.increment }}
51
51
CODER_RELEASE_DRAFT : ${{ github.event.inputs.draft }}
52
- CODER_DRY_RUN : ${{ github.event.inputs.dry_run || github.event.inputs.snapshot }}
52
+ CODER_DRY_RUN : ${{ contains( github.event.inputs.dry_run, 'true') || contains( github.event.inputs.snapshot, 'true') }}
53
53
54
54
jobs :
55
55
release :
@@ -126,6 +126,15 @@ jobs:
126
126
127
127
- name : Test
128
128
run : |
129
+ echo ${{ contains(github.event.inputs.dry_run, 'true') || contains(github.event.inputs.snapshot, 'true') }}
130
+ echo ${{ contains(github.event.inputs.dry_run, 'false') || contains(github.event.inputs.snapshot, 'false') }}
131
+ echo ${{ contains(github.event.inputs.dry_run, 'true') && contains(github.event.inputs.snapshot, 'true') }}
132
+ echo ${{ contains(github.event.inputs.dry_run, 'false') && contains(github.event.inputs.snapshot, 'false') }}
133
+ echo ${{ contains(github.event.inputs.dry_run, 'true') || contains(github.event.inputs.snapshot, 'false') }}
134
+ echo ${{ contains(github.event.inputs.dry_run, 'false') || contains(github.event.inputs.snapshot, 'true') }}
135
+ echo ${{ contains(github.event.inputs.dry_run, 'true') && contains(github.event.inputs.snapshot, 'false') }}
136
+ echo ${{ contains(github.event.inputs.dry_run, 'false') && contains(github.event.inputs.snapshot, 'true') }}
137
+
129
138
echo ${{ (github.event.inputs.dry_run == 'false' || github.event.inputs.dry_run == false) && (github.event.inputs.snapshot == 'false' || github.event.inputs.snapshot == false) }}
130
139
echo ${{ (github.event.inputs.dry_run == 'true' || github.event.inputs.dry_run == true) && (github.event.inputs.snapshot == 'true' || github.event.inputs.snapshot == true) }}
131
140
echo ${{ github.event.inputs.dry_run == 'false' && github.event.inputs.snapshot == 'false' }}
@@ -137,7 +146,7 @@ jobs:
137
146
echo ${{ !github.event.inputs.dry_run || !github.event.inputs.snapshot }}
138
147
139
148
- name : Test if
140
- if : ${{ github.event.inputs.dry_run == 'false' && github.event.inputs.snapshot == 'false' }}
149
+ if : ${{ contains( github.event.inputs.dry_run, 'false') && contains( github.event.inputs.snapshot, 'false') }}
141
150
run : |
142
151
echo Hello
143
152
0 commit comments