From 7f7652a7039cde68e1153b219b0cb2ce081f7148 Mon Sep 17 00:00:00 2001 From: Gabriele Bozzola Date: Wed, 29 Jan 2025 12:04:38 -0800 Subject: [PATCH] Skip buildkite if we only have markdown or github If we only change markdown files or files in the .github folder, skip buildkite --- .buildkite/pipeline.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 23dea40b3c..615ece4b12 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -16,7 +16,15 @@ env: MPI_CONFIG_PATH: "config/mpi_configs" steps: + - label: "Skip CI If we are only modifying md or .github files" + key: "skip_ci" + command: + - git diff main --name-only | grep -v ".md" | grep -v ".github" -c && exit -1 + + - wait + - label: "init :computer:" + depends_on: "skip_ci" key: "init_cpu_env" concurrency: 1 concurrency_group: 'depot/climaatmos-ci'