From c821b00abeafa2e2a567fe18ffa996d9f68236a1 Mon Sep 17 00:00:00 2001 From: dman776 Date: Tue, 23 Nov 2021 09:24:22 -0600 Subject: [PATCH] build: stop job if build is not needed (without error) (#188) --- .circleci/config.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4495d6d0..162833bd 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -44,6 +44,10 @@ jobs: - run: name: Retrieve last build info and check command: ssh ${SSH_USER}@${SSH_HOST} "sh -c ' ~/needs2build.sh ${CIRCLE_PROJECT_USERNAME} ${CIRCLE_PROJECT_REPONAME} ${CIRCLE_BRANCH} ${CIRCLE_SHA1}'" + - run: + name: Check2build failure (build not needed) + when: on_fail + command: circleci-agent step halt save_build_info: machine: enabled: true