Skip to content

Commit

Permalink
monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
dkijania committed Sep 25, 2023
1 parent fc56254 commit 19b2f5d
Showing 1 changed file with 2 additions and 30 deletions.
32 changes: 2 additions & 30 deletions buildkite/src/Monorepo.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -49,38 +49,10 @@ let commands: PipelineFilter.Type -> PipelineMode.Type -> List Cmd.Type = \(fi
let trigger = triggerCommand "src/Jobs/${job.path}/${job.name}.dhall"
let pipelineHandlers = {
PullRequest = ''
echo ${isIncluded}
if [ "${targetMode}" == "PullRequest" ]; then
if [ "True" == "True" ]; then
if (cat _computed_diff.txt | egrep -q '${dirtyWhen}'); then
echo "Triggering ${job.name} for reason:"
cat _computed_diff.txt | egrep '${dirtyWhen}'
${Cmd.format trigger}
fi
else
echo "Skipping ${job.name} because this is a ${isIncluded} stage"
fi
else
if [ "True" == "True" ]; then
echo "Triggering ${job.name} because this is a stable buildkite run"
${Cmd.format trigger}
else
echo "Skipping ${job.name} because this is a ${isIncluded} stage"
fi
fi
${Cmd.format trigger}
'',
Stable = ''
echo ${isIncluded}
if [ "${targetMode}" == "PullRequest" ]; then
echo "Skipping ${job.name} because this is a PR buildkite run"
else
if [ "True" == "True" ]; then
echo "Triggering ${job.name} because this is a stable buildkite run"
${Cmd.format trigger}
else
echo "Skipping ${job.name} because this is a ${isIncluded} stage"
fi
fi
${Cmd.format trigger}
''
}
in Cmd.quietly (merge pipelineHandlers job.mode)
Expand Down

0 comments on commit 19b2f5d

Please sign in to comment.