Commit 50d67716 authored by Swann Perarnau's avatar Swann Perarnau
Browse files

Merge branch 'ci-format-fix' into 'staging'

[ci/fix] bad file/regex for clang-format CI

See merge request !130
parents 0cd35317 e25c380e
Pipeline #10232 passed with stages
in 3 minutes and 22 seconds
......@@ -36,7 +36,7 @@ clang-format:
- rm -f clang-format-diff
- target=$(git rev-parse $DEFAULT_MERGE_TARGET)
- nix-shell "$ARGOPKGS" -A ci.aml-format --run "git-clang-format --diff $target > clang-format-diff"
- lint=$(grep -v --color=never "did not modify any files" || true)
- lint=$(grep -v --color=never "no modified files to format" clang-format-diff || true)
- if [ ! -z "$lint" ]; then exit 1; else exit 0; fi
artifacts:
when: on_failure
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment