From 5baf86e69b89143f0bc4ba062b604b9656087e10 Mon Sep 17 00:00:00 2001 From: Salah Al Saleh Date: Wed, 3 Jan 2024 15:19:45 +0000 Subject: [PATCH] Fix dependabot job conditional --- .github/workflows/build-test.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-test.yaml b/.github/workflows/build-test.yaml index 09675d136a..78981950af 100644 --- a/.github/workflows/build-test.yaml +++ b/.github/workflows/build-test.yaml @@ -3952,7 +3952,8 @@ jobs: dependabot: runs-on: ubuntu-20.04 needs: [ validate-success ] - if: github.event.pull_request.user.login == 'dependabot[bot]' + # Reference as to why this weird conditional is needed: https://github.com/actions/runner/issues/2205 + if: always() && needs.validate-success.result == 'success' && github.event.pull_request.user.login == 'dependabot[bot]' permissions: contents: write pull-requests: write