@@ -174,7 +174,7 @@ jobs:
174
174
with :
175
175
minor-label : " enhancement"
176
176
major-label : " change"
177
- publish : ${{ inputs.is_production_release && ! inputs.dry_run }}
177
+ publish : ${{ inputs.is_production_release && ( inputs.dry_run == false || inputs.dry_run == null) }}
178
178
collapse-after : 20
179
179
notes-header : |
180
180
*Below is the auto-generated changelog, which includes all PRs that went into the release.
@@ -193,7 +193,7 @@ jobs:
193
193
uses : goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6.4.0
194
194
with :
195
195
version : v2.11.2 # renovate: datasource=github-tags depName=goreleaser/goreleaser
196
- args : ${{ (inputs.is_production_release && ! inputs.dry_run) && 'release' || 'build --snapshot' }} --clean
196
+ args : ${{ (inputs.is_production_release && ( inputs.dry_run == false || inputs.dry_run == null) ) && 'release' || 'build --snapshot' }} --clean
197
197
env :
198
198
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
199
199
GOPATH : ${{ needs.vars.outputs.go_path }}
@@ -285,7 +285,7 @@ jobs:
285
285
image : ${{ matrix.image }}
286
286
k8s-version : ${{ matrix.k8s-version }}
287
287
enable-experimental : ${{ matrix.enable-experimental }}
288
- production-release : ${{ inputs.is_production_release && ! inputs.dry_run }}
288
+ production-release : ${{ inputs.is_production_release == true && ( inputs.dry_run == false || inputs.dry_run == null) }}
289
289
secrets : inherit
290
290
permissions :
291
291
contents : write
@@ -335,7 +335,7 @@ jobs:
335
335
echo "path=$(basename -- $(echo $output | cut -d: -f2))" >> $GITHUB_OUTPUT
336
336
337
337
- name : Push to GitHub Container Registry
338
- if : ${{ ! inputs.dry_run }}
338
+ if : ${{ inputs.dry_run == false || inputs.dry_run == null }}
339
339
run : |
340
340
helm push ${{ steps.package.outputs.path }} oci://ghcr.io/nginx/charts
341
341
0 commit comments