ci: exit if there is nothing to do
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
9f9e758f49
commit
d9d6e8cece
|
@ -19,7 +19,8 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- >-
|
- >-
|
||||||
[ -z "$(git diff --name-only "$DRONE_COMMIT_BEFORE" "$DRONE_COMMIT_AFTER" | grep '^firmware/faderboard/')" ]
|
[ -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
|
- cd firmware/faderboard
|
||||||
- cargo build
|
- cargo build
|
||||||
when:
|
when:
|
||||||
|
|
Loading…
Reference in New Issue