Skip to content

Commit

Permalink
fix(ci): Add 'patches' folder to pipeline triggers that need them (mi…
Browse files Browse the repository at this point in the history
…crosoft#22485)

## Description

Adds the `patches/` folder to pipeline triggers so changes to it cause
relevant pipelines to run.

Also reorders the triggers in the common-utils and protocol-definitions
pipeline to be in alphabetical order.

Related to microsoft#22484 and
microsoft#22474.
  • Loading branch information
alexvy86 authored Sep 12, 2024
1 parent 6b810c6 commit cb7861c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
2 changes: 2 additions & 0 deletions tools/pipelines/build-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ trigger:
- packages
- PACKAGES.md
- package.json
- patches/*
- pnpm-lock.yaml
- pnpm-workspace.yaml
- prettier.config.cjs
Expand Down Expand Up @@ -149,6 +150,7 @@ pr:
- packages
- PACKAGES.md
- package.json
- patches/*
- pnpm-lock.yaml
- pnpm-workspace.yaml
- prettier.config.cjs
Expand Down
10 changes: 8 additions & 2 deletions tools/pipelines/build-common-utils.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ trigger:
- .prettierignore
- common/build/build-common
- common/lib/common-utils
# Common-utils references files from the patches folder at the root of the repo.
# Using the whole folder as dependency because when patch files are updated they might get new names.
- patches/*
- scripts/*
- tools/pipelines/build-common-utils.yml
- tools/pipelines/templates/build-npm-package.yml
- tools/pipelines/templates/include-set-package-version.yml
Expand All @@ -51,7 +55,6 @@ trigger:
- tools/pipelines/templates/include-use-node-version.yml
- tools/pipelines/templates/include-process-test-results.yml
- tools/pipelines/templates/upload-dev-manifest.yml
- scripts/*

pr:
branches:
Expand All @@ -65,6 +68,10 @@ pr:
- .prettierignore
- common/build/build-common
- common/lib/common-utils
# Common-utils references files from the patches folder at the root of the repo.
# Using the whole folder as dependency because when patch files are updated they might get new names.
- patches/*
- scripts/*
- tools/pipelines/build-common-utils.yml
- tools/pipelines/templates/build-npm-package.yml
- tools/pipelines/templates/include-set-package-version.yml
Expand All @@ -73,7 +80,6 @@ pr:
- tools/pipelines/templates/include-use-node-version.yml
- tools/pipelines/templates/include-process-test-results.yml
- tools/pipelines/templates/upload-dev-manifest.yml
- scripts/*

variables:
- template: /tools/pipelines/templates/include-vars.yml@self
Expand Down
10 changes: 8 additions & 2 deletions tools/pipelines/build-protocol-definitions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ trigger:
- fluidBuild.config.cjs
- common/build/build-common
- common/lib/protocol-definitions
# Protocol-definitions references files from the patches folder at the root of the repo.
# Using the whole folder as dependency because when patch files are updated they might get new names.
- patches/*
- scripts/*
- tools/pipelines/build-protocol-definitions.yml
- tools/pipelines/templates/build-npm-package.yml
- tools/pipelines/templates/include-set-package-version.yml
Expand All @@ -52,7 +56,6 @@ trigger:
- tools/pipelines/templates/include-use-node-version.yml
- tools/pipelines/templates/include-process-test-results.yml
- tools/pipelines/templates/upload-dev-manifest.yml
- scripts/*

pr:
branches:
Expand All @@ -66,6 +69,10 @@ pr:
- .prettierignore
- common/build/build-common
- common/lib/protocol-definitions
# Protocol-definitions references files from the patches folder at the root of the repo.
# Using the whole folder as dependency because when patch files are updated they might get new names.
- patches/*
- scripts/*
- tools/pipelines/build-protocol-definitions.yml
- tools/pipelines/templates/build-npm-package.yml
- tools/pipelines/templates/include-set-package-version.yml
Expand All @@ -74,7 +81,6 @@ pr:
- tools/pipelines/templates/include-use-node-version.yml
- tools/pipelines/templates/include-process-test-results.yml
- tools/pipelines/templates/upload-dev-manifest.yml
- scripts/*

variables:
- template: /tools/pipelines/templates/include-vars.yml@self
Expand Down

0 comments on commit cb7861c

Please sign in to comment.