From d9d6e8cece360924d97da6f83418da1416a1c364 Mon Sep 17 00:00:00 2001 From: Luca Date: Sun, 21 Jul 2024 22:47:39 +0200 Subject: [PATCH] ci: exit if there is nothing to do --- .drone.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 22fe733..a49c3bb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -19,7 +19,8 @@ steps: commands: - >- [ -z "$(git diff --name-only "$DRONE_COMMIT_BEFORE" "$DRONE_COMMIT_AFTER" | grep '^firmware/faderboard/')" ] - && (echo "nothing to do" >&2; exit 0) + && echo "nothing to do" >&2 + && exit 0 - cd firmware/faderboard - cargo build when: