Woodpecker CI: Make xref use fail stamp

This commit is contained in:
Phantasm 2026-02-14 20:36:27 +01:00 committed by Phantasm
commit b0de9bd3cd

View file

@ -37,7 +37,10 @@ steps:
image: *elixir-image
failure: ignore
commands:
- mix xref graph --format cycles --label compile | awk '{print $0} END{exit ($0 != "No cycles found")}'
- |
if [ ! mix xref graph --format cycles --label compile | awk '{print $0} END{exit ($0 != "No cycles found")}' && -f fail.stamp ]; then
touch fail.stamp
fi
ensure-status:
image: *elixir-image