ci: exit if there is nothing to do
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Luca 2024-07-21 22:47:39 +02:00
parent 9f9e758f49
commit d9d6e8cece
1 changed files with 2 additions and 1 deletions

View File

@ -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: