Skip to content

Commit 695c5b6

Browse files
committed
Fix if check in certification job
1 parent a6bc92f commit 695c5b6

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -423,16 +423,17 @@ jobs:
423423
matrix:
424424
image: [ngf, nginx, operator]
425425
# if: ${{ github.event_name == 'pull_request' && github.event_pull_request.base.ref == 'main' || (github.event_name == 'push' && github.ref == 'refs/heads/main') || (inputs.is_production_release == true) }}
426+
if: |
427+
${{ matrix.image == 'operator' || (
428+
(matrix.image == 'ngf' || matrix.image == 'nginx') &&
429+
contains(
430+
(matrix.image == 'ngf' && needs.build-oss.outputs.image_version || matrix.image == 'nginx' && needs.build-oss.outputs.image_version),
431+
'-ubi'
432+
)
433+
) }}
426434
uses: ./.github/workflows/openshift-certification.yml
427435
with:
428436
image: ${{ matrix.image }}
429-
if: |
430-
(matrix.image == 'operator') ||
431-
((matrix.image == 'ngf' || matrix.image == 'nginx') && contains(
432-
matrix.image == 'ngf' && needs.build-oss.outputs.image_version ||
433-
matrix.image == 'nginx' && needs.build-oss.outputs.image_version,
434-
'-ubi'
435-
))
436437
tag: ${{ inputs.release_version || '' }}
437438
dry_run: ${{ inputs.dry_run || false }}
438439
permissions:

0 commit comments

Comments
 (0)