Skip to content

Commit

Permalink
Skip buildkite if we only have markdown or github
Browse files Browse the repository at this point in the history
If we only change markdown files or files in the .github folder, skip
buildkite
  • Loading branch information
Sbozzolo committed Jan 29, 2025
1 parent 6cdeb57 commit 7f7652a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 7f7652a

Please sign in to comment.