Skip to content

Commit

Permalink
Fix dependabot job conditional (#4268)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh authored Jan 3, 2024
1 parent 4d21186 commit dfcc89d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dfcc89d

Please sign in to comment.