From 20c2fffd6ddde969918c8040f8d01503db2b5b5f Mon Sep 17 00:00:00 2001 From: Arthur Meyre Date: Mon, 20 Dec 2021 10:58:14 +0100 Subject: [PATCH] chore: do not run stop-runner if we did not run start-runner --- .github/workflows/continuous-integration.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/continuous-integration.yaml b/.github/workflows/continuous-integration.yaml index b78025a41..c5e928c4d 100644 --- a/.github/workflows/continuous-integration.yaml +++ b/.github/workflows/continuous-integration.yaml @@ -385,7 +385,7 @@ jobs: name: Stop EC2 runner needs: [build, start-runner] runs-on: ubuntu-20.04 - if: ${{ always() }} + if: ${{ always() && (needs.start-runner.result != 'skipped') }} steps: - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@ea7b857d8a33dc2fb4ef5a724500044281b49a5e