Skip to content

Commit

Permalink
ci: fix detect-jobs-to-run (#7616)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jolg42 committed Jun 11, 2021
1 parent 8ae0935 commit 5762df6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/detect-jobs-to-run.js
Expand Up @@ -35,27 +35,27 @@ async function main() {
// If changes are located only in one of the paths below
if (
filesChanged.every((fileChanged) =>
fileChanged.startsWith("src/packages/cli")
fileChanged.startsWith("src/packages/cli/")
)
) {
jobsToRun.push("-cli-");
} else if (
filesChanged.every((fileChanged) =>
fileChanged.startsWith("src/packages/client")
fileChanged.startsWith("src/packages/client/")
)
) {
jobsToRun.push("-client-");
jobsToRun.push("-integration-tests-");
jobsToRun.push("-cli-");
} else if (
filesChanged.every((fileChanged) =>
fileChanged.startsWith("src/packages/integration-tests")
fileChanged.startsWith("src/packages/integration-tests/")
)
) {
jobsToRun.push("-integration-tests-");
} else if (
filesChanged.every((fileChanged) =>
fileChanged.startsWith("src/packages/migrate")
fileChanged.startsWith("src/packages/migrate/")
)
) {
jobsToRun.push("-migrate-");
Expand Down

0 comments on commit 5762df6

Please sign in to comment.