Skip to content

Commit 82dc4a8

Browse files
committed
Fix dry run conditional
1 parent 8d69bb6 commit 82dc4a8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ jobs:
174174
with:
175175
minor-label: "enhancement"
176176
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) }}
178178
collapse-after: 20
179179
notes-header: |
180180
*Below is the auto-generated changelog, which includes all PRs that went into the release.
@@ -193,7 +193,7 @@ jobs:
193193
uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6.4.0
194194
with:
195195
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
197197
env:
198198
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
199199
GOPATH: ${{ needs.vars.outputs.go_path }}
@@ -285,7 +285,7 @@ jobs:
285285
image: ${{ matrix.image }}
286286
k8s-version: ${{ matrix.k8s-version }}
287287
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) }}
289289
secrets: inherit
290290
permissions:
291291
contents: write
@@ -335,7 +335,7 @@ jobs:
335335
echo "path=$(basename -- $(echo $output | cut -d: -f2))" >> $GITHUB_OUTPUT
336336
337337
- name: Push to GitHub Container Registry
338-
if: ${{ !inputs.dry_run }}
338+
if: ${{ inputs.dry_run == false || inputs.dry_run == null }}
339339
run: |
340340
helm push ${{ steps.package.outputs.path }} oci://ghcr.io/nginx/charts
341341

0 commit comments

Comments
 (0)