Fix security job condition in build workflow

This commit is contained in:
cloudneutral 2025-12-23 18:11:50 +08:00
parent 86d1a6735a
commit 175f9e735a

View File

@ -158,7 +158,7 @@ jobs:
security:
runs-on: ubuntu-latest
needs: build
if: ${{ env.PUSH_IMAGES == 'true' && !((inputs.skip_security == true) || (github.event.inputs.skip_security == 'true')) }}
if: ${{ (github.event_name == 'push' || inputs.push_images == true || github.event.inputs.push_images == 'true') && !((inputs.skip_security == true) || (github.event.inputs.skip_security == 'true')) }}
strategy:
matrix: