From 8c0cd3b0705a01ec9638e01bf78f42687cb54b66 Mon Sep 17 00:00:00 2001 From: Arthur Meyre Date: Wed, 30 Mar 2022 08:36:29 +0200 Subject: [PATCH] chore: fix stop-runner-linux if there is unexpected failure --- .github/workflows/continuous-integration.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/continuous-integration.yaml b/.github/workflows/continuous-integration.yaml index 455fc26ef..bcf18901a 100644 --- a/.github/workflows/continuous-integration.yaml +++ b/.github/workflows/continuous-integration.yaml @@ -372,7 +372,7 @@ jobs: - name: Stop EC2 runner python 38 uses: machulav/ec2-github-runner@c34ba2df3363ebde9d19fdbc341e03d02267284d - if: ${{ needs.start-runner-linux.outputs.ec2-instance-id-38 }} + if: ${{ always() && needs.start-runner-linux.outputs.ec2-instance-id-38 }} with: github-token: ${{ secrets.EC2_RUNNER_BOT_TOKEN }} label: ${{ needs.start-runner-linux.outputs.label-38 }} @@ -381,7 +381,7 @@ jobs: - name: Stop EC2 runner python 39 uses: machulav/ec2-github-runner@c34ba2df3363ebde9d19fdbc341e03d02267284d - if: ${{ needs.start-runner-linux.outputs.ec2-instance-id-39 }} + if: ${{ always() && needs.start-runner-linux.outputs.ec2-instance-id-39 }} with: github-token: ${{ secrets.EC2_RUNNER_BOT_TOKEN }} label: ${{ needs.start-runner-linux.outputs.label-39 }}