Skip to content

Commit

Permalink
Exclude Dependabot created branches from CI testing on push
Browse files Browse the repository at this point in the history
When Dependabot creates a pull request we always end up with two CI runs
-- one for the pull request and one for the push of the commit to a
branch.
Exclude pushes to branches for Dependabot created pull requests, to
prevent this duplication of work.
  • Loading branch information
d-e-s-o committed Jul 20, 2024
1 parent 5168044 commit 45179a0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
name: Test

on:
push:
pull_request:
push:
branches:
- '**'
- '!dependabot/**'
workflow_call:

env:
Expand Down

0 comments on commit 45179a0

Please sign in to comment.