Skip to content

Commit c132f47

Browse files
committed
Ensure Openshift certification runs only on merges to main, and during releases
1 parent 11cb2ec commit c132f47

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,10 +412,15 @@ jobs:
412412
openshift-certification:
413413
name: OpenShift Certification
414414
needs: [build-oss, build-plus, build-operator]
415-
if: ${{ inputs.dry_run || false }}
415+
if: >
416+
${{ github.event_name == 'pull_request'
417+
&& github.event.pull_request.base.ref == 'main'
418+
|| (github.event_name == 'push' && github.ref == 'refs/heads/main')
419+
|| (inputs.is_production_release == true)
420+
}}
416421
uses: ./.github/workflows/openshift-certification.yml
417422
with:
418-
runner: ${{ github.repository_owner == 'nginx' && (inputs.is_production_release || (github.event_name == 'push' && github.ref == 'refs/heads/main')) && 'ubuntu-24.04-amd64' || 'ubuntu-24.04' }}
423+
runner: ubuntu-24.04
419424
permissions:
420425
contents: read
421426
packages: read

0 commit comments

Comments
 (0)