Put pr-gate after check-changes (#14009)
This commit is contained in:
@@ -12,14 +12,8 @@ concurrency:
|
|||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# ==================== PR Gate ==================== #
|
|
||||||
pr-gate:
|
|
||||||
uses: ./.github/workflows/pr-gate.yml
|
|
||||||
secrets: inherit
|
|
||||||
|
|
||||||
# ==================== Check Changes ==================== #
|
# ==================== Check Changes ==================== #
|
||||||
check-changes:
|
check-changes:
|
||||||
needs: [pr-gate]
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
main_package: ${{ steps.filter.outputs.main_package }}
|
main_package: ${{ steps.filter.outputs.main_package }}
|
||||||
@@ -41,8 +35,15 @@ jobs:
|
|||||||
- ".github/workflows/pr-test-xpu.yml"
|
- ".github/workflows/pr-test-xpu.yml"
|
||||||
- "docker/xpu.Dockerfile"
|
- "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:
|
build-and-test:
|
||||||
needs: [check-changes]
|
needs: [check-changes, pr-gate]
|
||||||
if: needs.check-changes.outputs.main_package == 'true'
|
if: needs.check-changes.outputs.main_package == 'true'
|
||||||
runs-on: intel-bmg
|
runs-on: intel-bmg
|
||||||
env:
|
env:
|
||||||
@@ -103,7 +104,7 @@ jobs:
|
|||||||
|
|
||||||
finish:
|
finish:
|
||||||
if: always()
|
if: always()
|
||||||
needs: [build-and-test]
|
needs: [build-and-test, pr-gate]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check job status
|
- name: Check job status
|
||||||
|
|||||||
Reference in New Issue
Block a user