Skip to content

Commit 41fc9a6

Browse files
committed
Simplify helm publish logic
1 parent 8c18e7d commit 41fc9a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,9 +531,9 @@ jobs:
531531

532532
publish-helm:
533533
name: Package and Publish Helm Chart
534-
runs-on: ${{ github.repository_owner == 'nginx' && (inputs.is_production_release || ((github.event_name == 'push' || github.event_name == 'schedule') && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release-')))) && 'ubuntu-24.04-amd64' || 'ubuntu-24.04' }}
534+
runs-on: ${{ github.repository_owner == 'nginx' && 'ubuntu-24.04-amd64' || 'ubuntu-24.04' }}
535535
needs: [vars, helm-tests]
536-
if: ${{ (inputs.is_production_release && (inputs.dry_run == false || inputs.dry_run == null)) || (github.event_name == 'push' && ! startsWith(github.ref, 'refs/heads/release-')) }}
536+
if: ${{ inputs.is_production_release || github.ref == 'refs/heads/main' }}
537537
permissions:
538538
contents: read
539539
packages: write # for helm to push to GHCR

0 commit comments

Comments
 (0)