From 9b6a17eb846cd3b52be14b1392ea4f0457f07b02 Mon Sep 17 00:00:00 2001 From: bzsuni <86399306+bzsuni@users.noreply.github.com> Date: Wed, 20 Dec 2023 16:56:35 +0800 Subject: [PATCH] Fix the unexpect CI call-by-workflow when submit a pr (#1072) Signed-off-by: bzsuni --- .github/workflows/build-image-ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-image-ci.yaml b/.github/workflows/build-image-ci.yaml index e428b2d45..3da3e0a9f 100644 --- a/.github/workflows/build-image-ci.yaml +++ b/.github/workflows/build-image-ci.yaml @@ -21,7 +21,7 @@ permissions: write-all jobs: call-by-workflow: uses: ./.github/workflows/call-release-image.yaml - if: ${{ inputs.ref != '' }} + if: ${{ github.event_name != 'pull_request_target' && inputs.ref != '' }} with: ref: ${{ inputs.ref }} push: "false"