Skip to content

Commit

Permalink
Ignore dependabot pushes correctly
Browse files Browse the repository at this point in the history
dependabot opens a branch in the main repository and then opens a pull
request, which triggers the same build twice. To avoid that, we had
branches-ignore set to ignore the push.

However the syntax was incorrect: since the branch name contains
slashes, we have to use two stars to ignore it. See [0] for details on
that syntax.

[0]: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet
  • Loading branch information
pquentin committed Aug 27, 2020
1 parent a45031e commit cb1b5f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Expand Up @@ -3,7 +3,7 @@ name: CI
on:
push:
branches-ignore:
- "dependabot/*"
- "dependabot/**"
pull_request:

jobs:
Expand Down

0 comments on commit cb1b5f3

Please sign in to comment.