Exclude non PR event

Co-authored-by: Yuanhao Ji <jiyuanhao@apache.org>
This commit is contained in:
jiahao su 2025-01-22 10:25:36 +08:00 committed by GitHub
parent 49e0d99bb1
commit 6fa26b6a20
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1459,7 +1459,7 @@ jobs:
# make
openEuler-latest-cmake-cann:
if: contains(github.event.pull_request.labels.*.name, 'Ascend NPU')
if: ${{ github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'Ascend NPU') }}
defaults:
run:
shell: bash -el {0}