From 727d04e51e84331f0078287ef915960fcf5d5882 Mon Sep 17 00:00:00 2001 From: Haitao Pan Date: Tue, 23 Dec 2025 17:03:03 +0800 Subject: [PATCH] Refactor build-images workflow pipeline --- .github/workflows/build-images.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-images.yml b/.github/workflows/build-images.yml index 181966e..65f7f49 100644 --- a/.github/workflows/build-images.yml +++ b/.github/workflows/build-images.yml @@ -158,7 +158,7 @@ jobs: security: runs-on: ubuntu-latest needs: build - if: ${{ env.SKIP_SECURITY != 'true' }} + if: ${{ !((inputs.skip_security == true) || (github.event.inputs.skip_security == 'true')) }} strategy: matrix: @@ -225,7 +225,7 @@ jobs: needs: - build - security - if: ${{ needs.build.result == 'success' && (env.SKIP_SECURITY == 'true' || needs.security.result == 'success') && (env.PUSH_IMAGES == 'true' || env.PUSH_IMAGES == true) }} + if: ${{ needs.build.result == 'success' && (github.event_name == 'push' || inputs.push_images == true || github.event.inputs.push_images == 'true') && ((inputs.skip_security == true) || (github.event.inputs.skip_security == 'true') || (needs.security.result == 'success')) }} strategy: fail-fast: false