Skip to content

Commit

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

0 comments on commit fc8bd7b

Please sign in to comment.