From 98cfd07e9f76df97a9d730234b0560b160f1f653 Mon Sep 17 00:00:00 2001 From: Igor Date: Mon, 3 Jul 2023 17:54:25 +0200 Subject: [PATCH] Update smoke-tests.yml --- .github/workflows/smoke-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/smoke-tests.yml b/.github/workflows/smoke-tests.yml index 8e0f5f95..d0452f47 100644 --- a/.github/workflows/smoke-tests.yml +++ b/.github/workflows/smoke-tests.yml @@ -30,7 +30,7 @@ jobs: uses: armbian/actions/runner-prepare@main - name: Power on - if: ! always() + if: ${{ !failure() && !cancelled() }} uses: armbian/actions/power-on@main with: KEY_POWER_ON: ${{ secrets.KEY_POWER_ON }} @@ -201,7 +201,7 @@ jobs: Stop: name: "Power system off" - if: ! always() + if: ${{ !failure() && !cancelled() }} needs: Test runs-on: [self-hosted, Linux, local] steps: