chore: do not run stop-runner if we did not run start-runner

This commit is contained in:
Arthur Meyre
2021-12-20 10:58:14 +01:00
parent b5b687b576
commit 20c2fffd6d

View File

@@ -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