From 67bde18d0ddb69c04167d0143d8480b3161bf46a Mon Sep 17 00:00:00 2001 From: Yi Zhang Date: Wed, 12 Oct 2022 15:22:42 +0800 Subject: [PATCH] Update Win_GPU_CI trigger (#13290) ### Description supplement of #13248 Add PR trigger https://learn.microsoft.com/en-us/azure/devops/pipelines/repos/github?view=azure-devops&tabs=yaml#pr-triggers fix: master -> main Testted with #13289 #13292 NB: the real pipeline is always triggered if the workflow yaml changed even it's added in the path filter. ### Motivation and Context Make sure the real pipeline not run in the backend. --- .github/workflows/generated_fake_win_gpu_ci.yml | 2 +- .github/workflows/skip-doc-change.yml.j2 | 2 +- .../github/azure-pipelines/win-gpu-ci-pipeline.yml | 13 ++++++++++++- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/generated_fake_win_gpu_ci.yml b/.github/workflows/generated_fake_win_gpu_ci.yml index bb978ac3df..4bc324cba0 100644 --- a/.github/workflows/generated_fake_win_gpu_ci.yml +++ b/.github/workflows/generated_fake_win_gpu_ci.yml @@ -3,7 +3,7 @@ name: Windows GPU CI Pipeline on: - push: + pull_request: paths: - docs/** - README.md diff --git a/.github/workflows/skip-doc-change.yml.j2 b/.github/workflows/skip-doc-change.yml.j2 index 6c2be88aff..58f048122a 100644 --- a/.github/workflows/skip-doc-change.yml.j2 +++ b/.github/workflows/skip-doc-change.yml.j2 @@ -3,7 +3,7 @@ name: {{ ci_workflow_name }} on: - push: + pull_request: paths: - docs/** - README.md diff --git a/tools/ci_build/github/azure-pipelines/win-gpu-ci-pipeline.yml b/tools/ci_build/github/azure-pipelines/win-gpu-ci-pipeline.yml index 7e4652d3ed..27b52fb13a 100644 --- a/tools/ci_build/github/azure-pipelines/win-gpu-ci-pipeline.yml +++ b/tools/ci_build/github/azure-pipelines/win-gpu-ci-pipeline.yml @@ -1,7 +1,18 @@ trigger: branches: include: - - master + - main + - rel-* + paths: + exclude: + - docs/** + - README.md + - CONTRIBUTING.md + - BUILD.md +pr: + branches: + include: + - main - rel-* paths: exclude: