Put pr-gate after check-changes (#14009)

This commit is contained in:
Liangsheng Yin
2025-11-27 01:40:16 +08:00
committed by GitHub
parent 5e70880e64
commit 0dd759e087
+9 -8
View File
@@ -12,14 +12,8 @@ concurrency:
cancel-in-progress: true
jobs:
# ==================== PR Gate ==================== #
pr-gate:
uses: ./.github/workflows/pr-gate.yml
secrets: inherit
# ==================== Check Changes ==================== #
check-changes:
needs: [pr-gate]
runs-on: ubuntu-latest
outputs:
main_package: ${{ steps.filter.outputs.main_package }}
@@ -41,8 +35,15 @@ jobs:
- ".github/workflows/pr-test-xpu.yml"
- "docker/xpu.Dockerfile"
# ==================== PR Gate ==================== #
pr-gate:
needs: check-changes
if: needs.check-changes.outputs.main_package == 'true'
uses: ./.github/workflows/pr-gate.yml
secrets: inherit
build-and-test:
needs: [check-changes]
needs: [check-changes, pr-gate]
if: needs.check-changes.outputs.main_package == 'true'
runs-on: intel-bmg
env:
@@ -103,7 +104,7 @@ jobs:
finish:
if: always()
needs: [build-and-test]
needs: [build-and-test, pr-gate]
runs-on: ubuntu-latest
steps:
- name: Check job status