From dfcc89d8ac55712ff322a6df152df1428213de1e Mon Sep 17 00:00:00 2001 From: Salah Al Saleh Date: Wed, 3 Jan 2024 07:34:24 -0800 Subject: [PATCH] Fix dependabot job conditional (#4268) --- .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