From edcdcc34a202f808a04e2741baddf9f9dc1349a1 Mon Sep 17 00:00:00 2001 From: Michael Vorburger Date: Sun, 17 May 2020 00:07:09 +0200 Subject: [PATCH] cancel previous ongoing jobs on Fineract.dev when updating [FINERACT-970] --- .github/workflows/fineract.dev.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/fineract.dev.yaml b/.github/workflows/fineract.dev.yaml index ad49d756f..0ce875459 100644 --- a/.github/workflows/fineract.dev.yaml +++ b/.github/workflows/fineract.dev.yaml @@ -30,4 +30,6 @@ jobs: - run: gcloud components install beta + - run: JOBS=$(gcloud beta builds list --ongoing --format="value[terminator=' '](id)") && [ ! -z "$JOBS" ] && echo "Cancelling $JOBS..." && gcloud builds cancel $JOBS --no-user-output-enabled + - run: gcloud beta builds triggers run deploy-demo --branch master --format=none