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: